Searched refs:value (Results 226 - 250 of 845) sorted by relevance

1234567891011>>

/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...]
H A DLearning_StochasticLinearRanker.java57 values_1[i] = temp_1.get(i).value;
64 values_2[i] = temp_2.get(i).value;
81 values[i] = temp.get(i).value;
92 weights.put(temp.get(i).key, temp.get(i).value);
98 public boolean SetModelParameter(String key, String value) { argument
101 return mLearningSlRanker.setModelParameter(key,value);
/frameworks/native/include/utils/
H A DKeyedVector.h103 enum { value = trait_trivial_move<SortedVector< key_value_pair_t<KEY, VALUE> > >::value }; enumerator in enum:android::trait_trivial_move::__anon1395
110 * Variation of KeyedVector that holds a default value to return when
145 return mVector.itemAt(i).value;
150 return mVector.itemAt(index).value;
167 return mVector.editItemAt(i).value;
172 return mVector.editItemAt(index).value;
176 ssize_t KeyedVector<KEY,VALUE>::add(const KEY& key, const VALUE& value) {
177 return mVector.add( key_value_pair_t<KEY,VALUE>(key, value) );
181 ssize_t KeyedVector<KEY,VALUE>::replaceValueFor(const KEY& key, const VALUE& value) {
[all...]
H A DGenerationCache.h32 virtual void operator()(EntryKey& key, EntryValue& value) = 0;
38 key(e.key), value(e.value),
40 Entry(const EntryKey& key, const EntryValue& value) : argument
41 key(key), value(value) { }
44 EntryValue value; member in struct:android::Entry
74 bool put(const K& key, const V& value);
125 (*mListener)(entry->key, entry->value);
146 return mCache.valueAt(index)->value;
163 put(const K& key, const V& value) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java149 * Adds a mapping from the specified key to the specified value,
153 public void put(long key, E value) { argument
157 mValues[i] = value;
163 mValues[i] = value;
195 mValues[i] = value;
201 * Returns the number of key-value mappings that this LongSparseArray
214 * the key from the <code>index</code>th key-value mapping that this
227 * the value from the <code>index</code>th key-value mapping that this
241 * value fo
244 setValueAt(int index, E value) argument
273 indexOfValue(E value) argument
304 append(long key, E value) argument
[all...]
H A DSparseArrayCompat.java141 * Adds a mapping from the specified key to the specified value,
145 public void put(int key, E value) { argument
149 mValues[i] = value;
155 mValues[i] = value;
187 mValues[i] = value;
193 * Returns the number of key-value mappings that this SparseArray
206 * the key from the <code>index</code>th key-value mapping that this
219 * the value from the <code>index</code>th key-value mapping that this
232 * value fo
235 setValueAt(int index, E value) argument
264 indexOfValue(E value) argument
295 append(int key, E value) argument
[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/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java178 Object value = view.getTag(id);
179 return value != null && value instanceof Boolean && ((Boolean) value).booleanValue();
184 protected static boolean writeBooleanTag(View view, int id, boolean value) { argument
186 view.setTag(id, Boolean.valueOf(value));
187 return value;
/frameworks/base/core/java/android/database/
H A DCursorWindow.java44 /** The cursor window size. resource xml file specifies the value in kB.
82 private static native boolean nativePutBlob(int windowPtr, byte[] value, int row, int column); argument
83 private static native boolean nativePutString(int windowPtr, String value, int row, int column); argument
84 private static native boolean nativePutLong(int windowPtr, long value, int row, int column); argument
85 private static native boolean nativePutDouble(int windowPtr, double value, int row, int column); argument
376 * Gets the value of the field at the specified row and column index as a byte array.
383 * is the blob value.</li>
386 * string value.</li>
394 * @return The value of the field as a byte array.
406 * Gets the value o
601 putBlob(byte[] value, int row, int column) argument
618 putString(String value, int row, int column) argument
635 putLong(long value, int row, int column) argument
653 putDouble(double value, int row, int column) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp181 const void* value = window->getFieldSlotValueBlob(fieldSlot, &size); local
188 env->SetByteArrayRegion(byteArray, 0, size, static_cast<const jbyte*>(value));
216 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
223 String16 utf16(value, sizeIncludingNull - 1);
226 int64_t value = window->getFieldSlotValueLong(fieldSlot); local
228 snprintf(buf, sizeof(buf), "%lld", value);
231 double value = window->getFieldSlotValueDouble(fieldSlot); local
233 snprintf(buf, sizeof(buf), "%g", value);
308 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
310 fillCharArrayBufferUTF(env, bufferObj, value, sizeIncludingNul
315 int64_t value = window->getFieldSlotValueLong(fieldSlot); local
320 double value = window->getFieldSlotValueDouble(fieldSlot); local
349 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
380 const char* value = window->getFieldSlotValueString(fieldSlot, &sizeIncludingNull); local
400 void* value = env->GetPrimitiveArrayCritical(valueObj, NULL); local
435 nativePutLong(JNIEnv* env, jclass clazz, jint windowPtr, jlong value, jint row, jint column) argument
449 nativePutDouble(JNIEnv* env, jclass clazz, jint windowPtr, jdouble value, jint row, jint column) argument
[all...]
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace.pb.h48 bool GLMessage_DataType_Type_IsValid(int value);
540 bool GLMessage_Function_IsValid(int value);
596 static inline bool Type_IsValid(int value) { argument
597 return GLMessage_DataType_Type_IsValid(value);
613 inline void set_type(::android::gltrace::GLMessage_DataType_Type value);
620 inline void set_isarray(bool value);
627 inline void set_intvalue(int index, ::google::protobuf::int32 value);
628 inline void add_intvalue(::google::protobuf::int32 value);
639 inline void set_floatvalue(int index, float value);
640 inline void add_floatvalue(float value);
1355 Function_IsValid(int value) argument
1478 set_type(::android::gltrace::GLMessage_DataType_Type value) argument
1495 set_isarray(bool value) argument
1510 set_intvalue(int index, ::google::protobuf::int32 value) argument
1513 add_intvalue(::google::protobuf::int32 value) argument
1535 set_floatvalue(int index, float value) argument
1538 add_floatvalue(float value) argument
1563 set_charvalue(int index, const ::std::string& value) argument
1566 set_charvalue(int index, const char* value) argument
1569 set_charvalue(int index, const void* value, size_t size) argument
1576 add_charvalue(const ::std::string& value) argument
1579 add_charvalue(const char* value) argument
1582 add_charvalue(const void* value, size_t size) argument
1607 set_rawbytes(int index, const ::std::string& value) argument
1610 set_rawbytes(int index, const char* value) argument
1613 set_rawbytes(int index, const void* value, size_t size) argument
1620 add_rawbytes(const ::std::string& value) argument
1623 add_rawbytes(const char* value) argument
1626 add_rawbytes(const void* value, size_t size) argument
1648 set_boolvalue(int index, bool value) argument
1651 add_boolvalue(bool value) argument
1678 set_width(::google::protobuf::int32 value) argument
1694 set_height(::google::protobuf::int32 value) argument
1712 set_contents(int index, const ::std::string& value) argument
1715 set_contents(int index, const char* value) argument
1718 set_contents(int index, const void* value, size_t size) argument
1725 add_contents(const ::std::string& value) argument
1728 add_contents(const char* value) argument
1731 add_contents(const void* value, size_t size) argument
1758 set_context_id(::google::protobuf::int32 value) argument
1774 set_start_time(::google::protobuf::int64 value) argument
1790 set_duration(::google::protobuf::int32 value) argument
1806 set_function(::android::gltrace::GLMessage_Function value) argument
1882 set_threadtime(::google::protobuf::int32 value) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java82 * Retrieve the styled string value for the attribute at <var>index</var>.
110 * Retrieve the string value for the attribute at <var>index</var>.
139 * Retrieve the string value for the attribute at <var>index</var>, but
140 * only if that string comes from an immediate value in an XML file. That
150 * an immediate string value.
168 * Retrieve the string value for the attribute at <var>index</var> that is
203 * Retrieve the boolean value for the attribute at <var>index</var>.
208 * @return Attribute boolean value, or defValue if not defined.
233 * Retrieve the integer value for the attribute at <var>index</var>.
238 * @return Attribute int value, o
[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/core/java/android/net/
H A DLocalSocketImpl.java164 int b, int value) throws IOException;
388 int value = getOption_native(fd, optID);
393 return value;
396 return value;
400 public void setOption(int optID, Object value) argument
415 if (value instanceof Integer) {
416 intValue = (Integer)value;
417 } else if (value instanceof Boolean) {
418 boolValue = ((Boolean) value)? 1 : 0;
420 throw new IOException("bad value
163 setOption_native(FileDescriptor fd, int optID, int b, int value) argument
[all...]
H A DLinkCapabilities.java48 * can read the value of that key from the socket but cannot request
52 * define the syntax for each value string associated with a key.
80 * This value is in kilobits per second (kbps).
104 * This value is in kilobits per second (kbps).
235 * Store the key/value capability pair
238 * @param value
240 public void put(int key, String value) { argument
241 mCapabilities.put(key, value);
256 * Returns whether this map contains the specified value.
258 * @param value t
262 containsValue(String value) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DJWebCoreJavaBridge.java163 * @param value The cookie string to be stored.
165 private void setCookies(String url, String value) { argument
166 if (value.contains("\r") || value.contains("\n")) {
168 int size = value.length();
172 int ir = value.indexOf('\r', i);
173 int in = value.indexOf('\n', i);
177 buffer.append(value.subSequence(i, newi));
179 buffer.append(value.subSequence(i, size));
184 value
[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();
177 int tag = 0x80 | ComprehensionTlvTag.LANGUAGE.value();
215 int tag = 0x80 | CommandType.PROVIDE_LOCAL_INFORMATION.value();
257 private byte byteToBCD(int value) { argument
258 if (value < 0 && value > 99) {
259 CatLog.d(this, "Err: byteToBCD conversion Value is " + value +
264 return (byte) ((value / 10) | ((value
[all...]
/frameworks/base/media/java/android/media/
H A DExifInterface.java125 * Returns the value of the specified tag or {@code null} if there
135 * Returns the integer value of the specified tag. If there is no such tag
136 * in the JPEG file or the value cannot be parsed as integer, return
140 * @param defaultValue the value to return if the tag is not available.
143 String value = mAttributes.get(tag);
144 if (value == null) return defaultValue;
146 return Integer.valueOf(value);
153 * Returns the double value of the specified rational tag. If there is no
154 * such tag in the JPEG file or the value cannot be parsed as double, return
158 * @param defaultValue the value t
181 setAttribute(String tag, String value) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java933 Object value; field in class:RemoteViews.ReflectionAction
935 ReflectionAction(int viewId, String methodName, int type, Object value) { argument
939 this.value = value;
956 this.value = in.readInt() != 0;
959 this.value = in.readByte();
962 this.value = (short)in.readInt();
965 this.value = in.readInt();
968 this.value = in.readLong();
971 this.value
2048 setBoolean(int viewId, String methodName, boolean value) argument
2059 setByte(int viewId, String methodName, byte value) argument
2070 setShort(int viewId, String methodName, short value) argument
2081 setInt(int viewId, String methodName, int value) argument
2092 setLong(int viewId, String methodName, long value) argument
2103 setFloat(int viewId, String methodName, float value) argument
2114 setDouble(int viewId, String methodName, double value) argument
2125 setChar(int viewId, String methodName, char value) argument
2136 setString(int viewId, String methodName, String value) argument
2147 setCharSequence(int viewId, String methodName, CharSequence value) argument
2158 setUri(int viewId, String methodName, Uri value) argument
2174 setBitmap(int viewId, String methodName, Bitmap value) argument
2185 setBundle(int viewId, String methodName, Bundle value) argument
2196 setIntent(int viewId, String methodName, Intent value) argument
[all...]
/frameworks/base/core/java/android/util/
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...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DFontLoader.java134 * Returns a {@link Font} object given a family name and a style value (constant in
308 private String trimXmlWhitespaces(String value) { argument
309 if (value == null) {
316 while ((index = value.indexOf('\n')) != -1) {
320 if (Character.isWhitespace(value.charAt(left))) {
328 int count = value.length();
330 if (Character.isWhitespace(value.charAt(right))) {
340 leftString = value.substring(0, left + 1);
344 rightString = value.substring(right);
348 value
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DEqualizer.java158 byte[] value = new byte[PARAM_STRING_SIZE_MAX];
163 checkStatus(getParameter(param, value));
165 while (value[length] != 0) length++;
167 mPresetNames[i] = new String(value, 0, length, "ISO-8859-1");
212 * Sets the given equalizer band to the given gain value.
225 short[] value = new short[1];
229 value[0] = level;
230 checkStatus(setParameter(param, value));
379 * parameter value has changed.
383 * Method called when a parameter value ha
392 onParameterChange(Equalizer effect, int status, int param1, int param2, int value) argument
403 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
/frameworks/base/core/java/android/content/
H A DIntent.java673 * extras: SHORTCUT_INTENT (value: Intent), SHORTCUT_NAME (value: String),
674 * and SHORTCUT_ICON (value: Bitmap) or SHORTCUT_ICON_RESOURCE
675 * (value: ShortcutIconResource).</p>
1236 * same value.
1445 * <li><em>time-zone</em> - The java.util.TimeZone.getID() value identifying the new time zone.</li>
1975 * The Intent contains an extra with name "read-only" and Boolean value to indicate if the
2081 * more radios have been turned off or on. The intent will have the following extra value:</p>
2083 * <li><em>state</em> - A boolean value indicating whether Airplane Mode is on. If true,
2219 * <li><em>state</em> - A boolean value indicatin
5102 putExtra(String name, boolean value) argument
5125 putExtra(String name, byte value) argument
5148 putExtra(String name, char value) argument
5171 putExtra(String name, short value) argument
5194 putExtra(String name, int value) argument
5217 putExtra(String name, long value) argument
5240 putExtra(String name, float value) argument
5263 putExtra(String name, double value) argument
5286 putExtra(String name, String value) argument
5309 putExtra(String name, CharSequence value) argument
5332 putExtra(String name, Parcelable value) argument
5355 putExtra(String name, Parcelable[] value) argument
5378 putParcelableArrayListExtra(String name, ArrayList<? extends Parcelable> value) argument
5401 putIntegerArrayListExtra(String name, ArrayList<Integer> value) argument
5424 putStringArrayListExtra(String name, ArrayList<String> value) argument
5447 putCharSequenceArrayListExtra(String name, ArrayList<CharSequence> value) argument
5470 putExtra(String name, Serializable value) argument
5493 putExtra(String name, boolean[] value) argument
5516 putExtra(String name, byte[] value) argument
5539 putExtra(String name, short[] value) argument
5562 putExtra(String name, char[] value) argument
5585 putExtra(String name, int[] value) argument
5608 putExtra(String name, long[] value) argument
5631 putExtra(String name, float[] value) argument
5654 putExtra(String name, double[] value) argument
5677 putExtra(String name, String[] value) argument
5700 putExtra(String name, CharSequence[] value) argument
5723 putExtra(String name, Bundle value) argument
5750 putExtra(String name, IBinder value) argument
[all...]
/frameworks/av/media/libstagefright/
H A DStagefrightMediaScanner.cpp160 const char *value; local
161 if ((value = mRetriever->extractMetadata(
163 status = client.setMimeType(value);
193 const char *value; local
194 if ((value = mRetriever->extractMetadata(kKeyMap[i].key)) != NULL) {
195 status = client.addStringTag(kKeyMap[i].tag, value);
/frameworks/base/tools/aapt/
H A DStringPool.h44 entry(const String16& _value) : value(_value), offset(0), hasStyles(false) { }
45 entry(const entry& o) : value(o.value), offset(o.offset),
49 String16 value; member in struct:StringPool::entry
91 * otherwise, or if the value doesn't already exist, a new entry is
96 ssize_t add(const String16& value, bool mergeDuplicates = false,
99 ssize_t add(const String16& value, const Vector<entry_style_span>& spans,
168 // the first index of mEntryArray where the value was added.

Completed in 778 milliseconds

1234567891011>>