Searched refs:value (Results 126 - 150 of 1198) 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.java66 Integer value = mDynamicIds.get(resource);
67 if (value == null) {
68 value = ++mDynamicSeed;
69 mDynamicIds.put(resource, value);
70 mRevDynamicIds.put(value, resource);
73 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.java36 TypedValue value = new TypedValue();
37 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0;
46 TypedValue value = new TypedValue();
47 return context.getTheme().resolveAttribute(R.attr.isLightTheme, value, true)
48 && value.data != 0;
/frameworks/base/location/java/android/location/
H A DGpsNavigationMessage.java104 public void setType(byte value) { argument
105 switch (value) {
111 mType = value;
114 Log.d(TAG, "Sanitizing invalid 'type': " + value);
152 public void setPrn(byte value) { argument
153 mPrn = value;
159 * subframe 4 and 5, this value corresponds to the 'frame id' of the navigation message.
169 public void setMessageId(short value) { argument
170 mMessageId = value;
175 * If required by {@link #getType()}, this value contain
186 setSubmessageId(short value) argument
202 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.java280 * Return the string value associated with a particular resource ID. The
287 * entry. The value 0 is an invalid identifier.
314 * entry. The value 0 is an invalid identifier.
371 * Return the string value associated with a particular resource ID. It
377 * entry. The value 0 is an invalid identifier.
395 * Return the string value associated with a particular resource ID,
403 * entry. The value 0 is an invalid identifier.
432 * entry. The value 0 is an invalid identifier.
459 * entry. The value 0 is an invalid identifier.
473 * Return the string value associate
1180 openRawResource(int id, TypedValue value) argument
2325 loadDrawable(TypedValue value, int id, Theme theme) argument
2394 cacheDrawable(TypedValue value, Theme theme, boolean isColorDrawable, ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>> caches, long key, Drawable dr) argument
2439 loadDrawableForCookie(TypedValue value, int id, Theme theme) argument
2533 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/base/media/java/android/media/audiofx/
H A DAudioEffect.java181 * Operation failed due to bad parameter value.
522 * generic one where the parameter and its value are both specified as an
523 * array of bytes. The parameter and value type and length are therefore
529 * @param value the new value for the specified parameter
536 public int setParameter(byte[] param, byte[] value) argument
539 return native_setParameter(param.length, param, value.length, value);
543 * Set effect parameter. The parameter and its value are integers.
548 public int setParameter(int param, int value) throw argument
561 setParameter(int param, short value) argument
575 setParameter(int param, byte[] value) argument
588 setParameter(int[] param, int[] value) argument
613 setParameter(int[] param, short[] value) argument
639 setParameter(int[] param, byte[] value) argument
667 getParameter(byte[] param, byte[] value) argument
680 getParameter(int param, byte[] value) argument
695 getParameter(int param, int[] value) argument
726 getParameter(int param, short[] value) argument
757 getParameter(int[] param, int[] value) argument
791 getParameter(int[] param, short[] value) argument
824 getParameter(int[] param, byte[] value) argument
999 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
1232 native_setParameter(int psize, byte[] param, int vsize, byte[] value) argument
1235 native_getParameter(int psize, byte[] param, int vsize, byte[] value) argument
1307 intToByteArray(int value) argument
1334 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DColorfulnessFilter.java71 float value = histogramBuffer.get() * weight;
72 hueHistogram[c] += value;
73 total += value;
78 float value = hueHistogram[c] / total;
79 if (value > 0f) {
80 colorful -= value * ((float) Math.log(value));
/frameworks/base/libs/hwui/
H A DAnimator.cpp64 void BaseRenderNodeAnimator::setStartValue(float value) { argument
66 doSetStartValue(value);
69 void BaseRenderNodeAnimator::doSetStartValue(float value) { argument
70 mFromValue = value;
137 // because the staging properties reflect the final value, we always need
139 // being delayed as we need to override the staging value
234 void RenderPropertyAnimator::setValue(RenderNode* target, float value) { argument
235 (target->animatorProperties().*mPropertyAccess->setter)(value);
249 return mProperty->value;
252 void CanvasPropertyPrimitiveAnimator::setValue(RenderNode* target, float value) { argument
282 to_uint8(float value) argument
287 setValue(RenderNode* target, float value) argument
315 setValue(RenderNode* target, float value) argument
[all...]

Completed in 3388 milliseconds

1234567891011>>