Searched refs:value (Results 126 - 150 of 1186) sorted by relevance

1234567891011>>

/frameworks/base/telephony/java/android/telephony/
H A DJapanesePhoneNumberFormatter.java193 short value = FORMAT_MAP[base + ch - '0'];
194 if (value < 0) {
195 if (value <= -100) {
199 int dashPos2 = rootIndex + (Math.abs(value) % 10);
203 int dashPos1 = rootIndex + (Math.abs(value) / 10);
209 base = value;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java63 Integer value = mDynamicIds.get(resource);
64 if (value == null) {
65 value = Integer.valueOf(++mDynamicSeed);
66 mDynamicIds.put(resource, value);
67 mRevDynamicIds.put(value, resource);
70 return value;
/frameworks/compile/mclinker/lib/Script/
H A DTernaryOp.cpp23 if (m_pOperand[0]->value())
24 res->setValue(m_pOperand[1]->value());
26 res->setValue(m_pOperand[2]->value());
42 uint64_t dot = m_pOperand[0]->value();
43 uint64_t maxPageSize = m_pOperand[1]->value();
44 uint64_t commonPageSize = m_pOperand[2]->value();
/frameworks/native/opengl/tools/glgen/specs/egl/
H A Dchecks.spec4 eglGetConfigAttrib check value 1
10 eglQuerySurface check value 1
13 eglQueryContext check value 1
/frameworks/support/v4/java/android/support/v4/util/
H A DContainerHelpers.java45 static int binarySearch(int[] array, int size, int value) { argument
53 if (midVal < value) {
55 } else if (midVal > value) {
58 return mid; // value found
61 return ~lo; // value not present
64 static int binarySearch(long[] array, int size, long value) { argument
72 if (midVal < value) {
74 } else if (midVal > value) {
77 return mid; // value found
80 return ~lo; // value no
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java40 TypedValue value = new TypedValue();
41 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0;
50 TypedValue value = new TypedValue();
51 return context.getTheme().resolveAttribute(R.attr.isLightTheme, value, true)
52 && value.data != 0;
/frameworks/base/location/java/android/location/
H A DGpsNavigationMessage.java102 public void setType(byte value) { argument
103 switch (value) {
109 mType = value;
112 Log.d(TAG, "Sanitizing invalid 'type': " + value);
150 public void setPrn(byte value) { argument
151 mPrn = value;
157 * subframe 4 and 5, this value corresponds to the 'frame id' of the navigation message.
167 public void setMessageId(short value) { argument
168 mMessageId = value;
173 * If required by {@link #getType()}, this value contain
184 setSubmessageId(short value) argument
200 setData(byte[] value) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxSessionManager.java48 String value; field in class:BordeauxSessionManager.SessionKey
105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName();
110 if (mSessions.containsKey(key.value)) {
111 return mSessions.get(key.value).learner.getBinder();
116 Session stored = mSessionStorage.getSession(key.value);
119 stored.learner.setModelChangeCallback(new LearningUpdateCallback(key.value));
121 mSessions.put(key.value, stored);
126 Log.i(TAG, "create a new learning session: " + key.value);
130 learner.setModelChangeCallback(new LearningUpdateCallback(key.value));
134 mSessions.put(key.value, sessio
[all...]
/frameworks/base/core/java/android/content/res/
H A DResources.java255 * Return the string value associated with a particular resource ID. The
262 * entry. The value 0 is an invalid identifier.
289 * entry. The value 0 is an invalid identifier.
346 * Return the string value associated with a particular resource ID. It
352 * entry. The value 0 is an invalid identifier.
370 * Return the string value associated with a particular resource ID,
378 * entry. The value 0 is an invalid identifier.
407 * entry. The value 0 is an invalid identifier.
434 * entry. The value 0 is an invalid identifier.
448 * Return the string value associate
1147 openRawResource(int id, TypedValue value) argument
2281 loadDrawable(TypedValue value, int id, Theme theme) argument
2343 cacheDrawable(TypedValue value, Theme theme, boolean isColorDrawable, ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>> caches, long key, Drawable dr) argument
2388 loadDrawableForCookie(TypedValue value, int id, Theme theme) argument
2482 loadColorStateList(TypedValue value, int id) argument
[all...]
/frameworks/base/core/java/android/net/nsd/
H A DNsdServiceInfo.java99 public void setAttribute(String key, byte[] value) { argument
110 // Key length + value length must be < 255.
111 if (key.length() + (value == null ? 0 : value.length) >= 255) {
112 throw new IllegalArgumentException("Key length + value length must be < 255 bytes");
123 int futureSize = txtRecordSize + key.length() + (value == null ? 0 : value.length) + 2;
130 mTxtRecord.put(key, value);
134 * Add a service attribute as a key/value pair.
139 * be UTF-8 strings or null. The total length of key + value mus
145 setAttribute(String key, String value) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DByte4.java79 * @param value
81 public void add(byte value) { argument
82 x += value;
83 y += value;
84 z += value;
85 w += value;
137 * @param value
139 public void sub(byte value) { argument
140 x -= value;
141 y -= value;
197 mul(byte value) argument
255 div(byte value) argument
395 setAt(int i, byte value) argument
420 addAt(int i, byte value) argument
[all...]
H A DInt3.java79 * @param value
81 public void add(int value) { argument
82 x += value;
83 y += value;
84 z += value;
133 * @param value
135 public void sub(int value) { argument
136 x -= value;
137 y -= value;
138 z -= value;
189 mul(int value) argument
243 div(int value) argument
297 mod(int value) argument
428 setAt(int i, int value) argument
450 addAt(int i, int value) argument
[all...]
H A DLong3.java79 * @param value
81 public void add(long value) { argument
82 x += value;
83 y += value;
84 z += value;
133 * @param value
135 public void sub(long value) { argument
136 x -= value;
137 y -= value;
138 z -= value;
189 mul(long value) argument
243 div(long value) argument
297 mod(long value) argument
428 setAt(int i, long value) argument
450 addAt(int i, long value) argument
[all...]
H A DShort3.java79 * @param value
81 public void add(short value) { argument
82 x += value;
83 y += value;
84 z += value;
133 * @param value
135 public void sub(short value) { argument
136 x -= value;
137 y -= value;
138 z -= value;
189 mul(short value) argument
243 div(short value) argument
297 mod(short value) argument
428 setAt(int i, short value) argument
450 addAt(int i, short value) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp79 void MtpDataPacket::getUInt128(uint128_t& value) { argument
80 value[0] = getUInt32();
81 value[1] = getUInt32();
82 value[2] = getUInt32();
83 value[3] = getUInt32();
155 void MtpDataPacket::putInt8(int8_t value) { argument
157 mBuffer[mOffset++] = (uint8_t)value;
162 void MtpDataPacket::putUInt8(uint8_t value) { argument
164 mBuffer[mOffset++] = (uint8_t)value;
169 void MtpDataPacket::putInt16(int16_t value) { argument
177 putUInt16(uint16_t value) argument
185 putInt32(int32_t value) argument
195 putUInt32(uint32_t value) argument
205 putInt64(int64_t value) argument
219 putUInt64(uint64_t value) argument
233 putInt128(const int128_t& value) argument
240 putUInt128(const uint128_t& value) argument
247 putInt128(int64_t value) argument
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DAudioEffect.java181 * Operation failed due to bad parameter value.
518 * generic one where the parameter and its value are both specified as an
519 * array of bytes. The parameter and value type and length are therefore
525 * @param value the new value for the specified parameter
532 public int setParameter(byte[] param, byte[] value) argument
535 return native_setParameter(param.length, param, value.length, value);
539 * Set effect parameter. The parameter and its value are integers.
544 public int setParameter(int param, int value) throw argument
557 setParameter(int param, short value) argument
571 setParameter(int param, byte[] value) argument
584 setParameter(int[] param, int[] value) argument
609 setParameter(int[] param, short[] value) argument
635 setParameter(int[] param, byte[] value) argument
663 getParameter(byte[] param, byte[] value) argument
676 getParameter(int param, byte[] value) argument
691 getParameter(int param, int[] value) argument
722 getParameter(int param, short[] value) argument
753 getParameter(int[] param, int[] value) argument
787 getParameter(int[] param, short[] value) argument
820 getParameter(int[] param, byte[] value) argument
995 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
1228 native_setParameter(int psize, byte[] param, int vsize, byte[] value) argument
1231 native_getParameter(int psize, byte[] param, int vsize, byte[] value) argument
1303 intToByteArray(int value) argument
1330 shortToByteArray(short value) argument
[all...]
H A DLoudnessEnhancer.java29 * The processing is parametrized by a target gain value, which determines the maximum amount
115 * The target gain is the maximum value by which a sample value will be amplified when the
136 int[] value = new int[1];
137 checkStatus(getParameter(PARAM_TARGET_GAIN_MB, value));
138 return value[0];
144 * when a parameter value has changed.
148 * Method called when a parameter value has changed. The method is called only if the
153 * @param value the new parameter value
155 onParameterChange(LoudnessEnhancer effect, int param, int value) argument
166 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DPresetReverb.java156 short[] value = new short[1];
157 checkStatus(getParameter(PARAM_PRESET, value));
158 return value[0];
163 * when a parameter value has changed.
167 * Method called when a parameter value has changed. The method is called only if the
173 * @param value the new parameter value.
175 void onParameterChange(PresetReverb effect, int status, int param, short value); argument
186 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
201 if (value
[all...]
/frameworks/base/core/java/android/util/
H A DLongSparseLongArray.java99 * Gets the long mapped from the specified key, or the specified value
133 * Adds a mapping from the specified key to the specified value,
137 public void put(long key, long value) { argument
141 mValues[i] = value;
146 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value);
152 * Returns the number of key-value mappings that this SparseIntArray
161 * the key from the <code>index</code>th key-value mapping that this
175 * the value from the <code>index</code>th key-value mapping that this
180 * <code>valueAt(0)</code> will return the value associate
205 indexOfValue(long value) argument
224 append(long key, long value) argument
[all...]
H A DSparseIntArray.java97 * Gets the int mapped from the specified key, or the specified value
131 * Adds a mapping from the specified key to the specified value,
135 public void put(int key, int value) { argument
139 mValues[i] = value;
144 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value);
150 * Returns the number of key-value mappings that this SparseIntArray
159 * the key from the <code>index</code>th key-value mapping that this
173 * the value from the <code>index</code>th key-value mapping that this
178 * <code>valueAt(0)</code> will return the value associate
203 indexOfValue(int value) argument
222 append(int key, int value) argument
[all...]
H A DSparseLongArray.java97 * Gets the long mapped from the specified key, or the specified value
131 * Adds a mapping from the specified key to the specified value,
135 public void put(int key, long value) { argument
139 mValues[i] = value;
144 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value);
150 * Returns the number of key-value mappings that this SparseIntArray
159 * the key from the <code>index</code>th key-value mapping that this
173 * the value from the <code>index</code>th key-value mapping that this
178 * <code>valueAt(0)</code> will return the value associate
203 indexOfValue(long value) argument
222 append(int key, long value) argument
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.h13 void setIntField(JNIEnv *env, jobject obj, const char *name, jint value);
14 void setLongField(JNIEnv *env, jobject obj, const char *name, jlong value);
15 void setLongArrayField(JNIEnv *env, jobject obj, const char *name, jlongArray value);
16 void setLongArrayElement(JNIEnv *env, jobject obj, const char *name, int index, jlong value);
17 void setStringField(JNIEnv *env, jobject obj, const char *name, const char *value);
20 void setObjectField(JNIEnv *env, jobject obj, const char *name, const char *type, jobject value);
24 void setStaticLongField(JNIEnv *env, jobject obj, const char *name, jlong value);
25 void setStaticLongField(JNIEnv *env, jclass cls, const char *name, jlong value);
28 void setStaticLongArrayField(JNIEnv *env, jobject obj, const char *name, jlongArray value);
29 void setStaticLongArrayField(JNIEnv *env, jclass obj, const char *name, jlongArray value);
[all...]
/frameworks/av/media/libstagefright/
H A DMetaData.cpp60 bool MetaData::setCString(uint32_t key, const char *value) { argument
61 return setData(key, TYPE_C_STRING, value, strlen(value) + 1);
64 bool MetaData::setInt32(uint32_t key, int32_t value) { argument
65 return setData(key, TYPE_INT32, &value, sizeof(value));
68 bool MetaData::setInt64(uint32_t key, int64_t value) { argument
69 return setData(key, TYPE_INT64, &value, sizeof(value));
72 bool MetaData::setFloat(uint32_t key, float value) { argument
76 setPointer(uint32_t key, void *value) argument
96 findCString(uint32_t key, const char **value) argument
109 findInt32(uint32_t key, int32_t *value) argument
124 findInt64(uint32_t key, int64_t *value) argument
139 findFloat(uint32_t key, float *value) argument
154 findPointer(uint32_t key, void **value) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DASessionDescription.cpp97 AString key, value; local
117 value.setTo(line, colonPos + 1, line.size() - colonPos - 1);
121 value.trim();
123 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str());
125 mTracks.editItemAt(mTracks.size() - 1).add(key, value);
141 AString key, value; local
146 value = AString(line, equalPos + 1, line.size() - equalPos - 1);
149 value.trim();
151 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str());
153 mTracks.editItemAt(mTracks.size() - 1).add(key, value);
233 AString value; local
257 AString value; local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DColorInversionTile.java40 protected void handleValueChanged(int value) {
43 handleRefreshState(value);
80 mSetting.setValue(mState.value ? 0 : 1);
85 final int value = arg instanceof Integer ? (Integer) arg : mSetting.getValue();
86 final boolean enabled = value != 0;
88 state.value = enabled;
95 if (mState.value) {

Completed in 539 milliseconds

1234567891011>>