Searched refs:value (Results 151 - 175 of 1186) sorted by relevance

1234567891011>>

/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...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java52 * @param value the string value of the setting
53 * @return whether to continue with writing the value to the database. In
55 * and in some cases the property value needs to be modified before setting.
57 public boolean restoreValue(String name, String value) { argument
59 setBrightness(Integer.parseInt(value));
61 setSoundEffects(Integer.parseInt(value) == 1);
63 setGpsLocation(value);
66 setAutoRestore(Integer.parseInt(value) == 1);
71 setRingtone(name, value);
77 onBackupValue(String name, String value) argument
98 setRingtone(String name, String value) argument
117 getCanonicalRingtoneValue(String value) argument
152 setGpsLocation(String value) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DInt2.java74 * @param value
76 public void add(int value) { argument
77 x += value;
78 y += value;
124 * @param value
126 public void sub(int value) { argument
127 x -= value;
128 y -= value;
174 * @param value
176 public void mul(int value) { argument
226 div(int value) argument
276 mod(int value) argument
398 setAt(int i, int value) argument
417 addAt(int i, int value) argument
[all...]
H A DLong2.java74 * @param value
76 public void add(long value) { argument
77 x += value;
78 y += value;
124 * @param value
126 public void sub(long value) { argument
127 x -= value;
128 y -= value;
174 * @param value
176 public void mul(long value) { argument
226 div(long value) argument
276 mod(long value) argument
398 setAt(int i, long value) argument
417 addAt(int i, long value) argument
[all...]
H A DShort2.java77 * @param value
79 public void add(short value) { argument
80 x += value;
81 y += value;
127 * @param value
129 public void sub(short value) { argument
130 x -= value;
131 y -= value;
177 * @param value
179 public void mul(short value) { argument
229 div(short value) argument
279 mod(short value) argument
401 setAt(int i, short value) argument
420 addAt(int i, short value) argument
[all...]
/frameworks/base/tools/aapt/
H A DAaptXml.cpp28 Res_value value; local
29 if (tree.getAttributeValue(attrIndex, &value) < 0) {
36 if (value.dataType != Res_value::TYPE_STRING) {
38 *outError = "attribute is not a string value";
50 Res_value value; local
51 if (tree.getAttributeValue(attrIndex, &value) < 0) {
58 if (value.dataType < Res_value::TYPE_FIRST_INT
59 || value.dataType > Res_value::TYPE_LAST_INT) {
61 *outError = "attribute is not an integer value";
65 return value
102 Res_value value; local
147 Res_value value; local
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DRetryManager.java35 * separated by a comma. There are two name value pair parameters plus a series
37 * The name value pairs which may be specified are:
39 *<li>max_retries=<value>
40 *<li>default_randomizationTime=<value>
44 * maybe called before isRetryNeeded will return false. if value
52 * may have an optional randomization value separated from the
57 * <li>3 retries with no randomization value which means its 0:
60 * <li>10 retries with a 500 default randomization value for each and
64 * <li>4 retries with a 100 as the default randomization value for the first 2 values and
134 * a random value
418 validateNonNegativeInt(String name, int value) argument
[all...]
/frameworks/base/core/java/android/net/http/
H A DHeaders.java383 public void setContentLength(long value) { argument
384 this.contentLength = value;
387 public void setContentType(String value) { argument
388 mHeaders[IDX_CONTENT_TYPE] = value;
391 public void setContentEncoding(String value) { argument
392 mHeaders[IDX_CONTENT_ENCODING] = value;
395 public void setLocation(String value) { argument
396 mHeaders[IDX_LOCATION] = value;
399 public void setWwwAuthenticate(String value) { argument
400 mHeaders[IDX_WWW_AUTHENTICATE] = value;
403 setProxyAuthenticate(String value) argument
407 setContentDisposition(String value) argument
411 setAcceptRanges(String value) argument
415 setExpires(String value) argument
419 setCacheControl(String value) argument
423 setLastModified(String value) argument
427 setEtag(String value) argument
431 setXPermittedCrossDomainPolicies(String value) argument
436 header(String name, String value) argument
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DAMessage.h46 void setInt32(const char *name, int32_t value);
47 void setInt64(const char *name, int64_t value);
48 void setSize(const char *name, size_t value);
49 void setFloat(const char *name, float value);
50 void setDouble(const char *name, double value);
51 void setPointer(const char *name, void *value);
64 bool findInt32(const char *name, int32_t *value) const;
65 bool findInt64(const char *name, int64_t *value) const;
66 bool findSize(const char *name, size_t *value) const;
67 bool findFloat(const char *name, float *value) cons
[all...]
/frameworks/av/media/mtp/
H A DMtpProperty.cpp284 int value = *values++; local
287 mEnumValues[i].u.i8 = value;
290 mEnumValues[i].u.u8 = value;
293 mEnumValues[i].u.i16 = value;
296 mEnumValues[i].u.u16 = value;
299 mEnumValues[i].u.i32 = value;
302 mEnumValues[i].u.u32 = value;
305 mEnumValues[i].u.i64 = value;
308 mEnumValues[i].u.u64 = value;
330 buffer = " default value
369 print(MtpPropertyValue& value, MtpString& buffer) argument
412 readValue(MtpDataPacket& packet, MtpPropertyValue& value) argument
465 writeValue(MtpDataPacket& packet, MtpPropertyValue& value) argument
[all...]
/frameworks/base/core/java/android/os/
H A DBaseBundle.java143 * TODO: optimize this later (getting just the value part of a Bundle
145 * with a special single-value Map implementation/serialization.
147 * Note: value in single-pair Bundle may be null.
326 * Inserts a Boolean value into the mapping of this Bundle, replacing
327 * any existing value for the given key. Either key or value may be null.
330 * @param value a Boolean, or null
332 void putBoolean(String key, boolean value) { argument
334 mMap.put(key, value);
338 * Inserts a byte value int
344 putByte(String key, byte value) argument
356 putChar(String key, char value) argument
368 putShort(String key, short value) argument
380 putInt(String key, int value) argument
392 putLong(String key, long value) argument
404 putFloat(String key, float value) argument
416 putDouble(String key, double value) argument
428 putString(String key, String value) argument
440 putCharSequence(String key, CharSequence value) argument
452 putIntegerArrayList(String key, ArrayList<Integer> value) argument
464 putStringArrayList(String key, ArrayList<String> value) argument
476 putCharSequenceArrayList(String key, ArrayList<CharSequence> value) argument
488 putSerializable(String key, Serializable value) argument
500 putBooleanArray(String key, boolean[] value) argument
512 putByteArray(String key, byte[] value) argument
524 putShortArray(String key, short[] value) argument
536 putCharArray(String key, char[] value) argument
548 putIntArray(String key, int[] value) argument
560 putLongArray(String key, long[] value) argument
572 putFloatArray(String key, float[] value) argument
584 putDoubleArray(String key, double[] value) argument
596 putStringArray(String key, String[] value) argument
608 putCharSequenceArray(String key, CharSequence[] value) argument
628 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument
644 typeWarning(String key, Object value, String className, ClassCastException e) argument
[all...]
/frameworks/base/core/java/android/util/
H A DLruCache.java24 * a value is accessed, it is moved to the head of a queue. When a value is
25 * added to a full cache, the value at the end of that queue is evicted and may
33 * assume a value will always be returned, even when there's a cache miss.
41 * protected int sizeOf(String key, Bitmap value) {
42 * return value.getByteCount();
50 * cache.put(key, value);
54 * <p>This class does not allow null to be used as a key or value. A return
55 * value of null from {@link #get}, {@link #put} or {@link #remove} is
105 * Returns the value fo
164 put(K key, V value) argument
285 safeSizeOf(K key, V value) argument
300 sizeOf(K key, V value) argument
[all...]
H A DRange.java100 * Checks if the {@code value} is within the bounds of this range.
102 * <p>A value is considered to be within this range if it's {@code >=}
106 * @param value a non-{@code null} {@code T} reference
107 * @return {@code true} if the value is within this inclusive range, {@code false} otherwise
109 * @throws NullPointerException if {@code value} was {@code null}
111 public boolean contains(T value) { argument
112 checkNotNull(value, "value must not be null");
114 boolean gteLower = value.compareTo(mLower) >= 0;
115 boolean lteUpper = value
173 clamp(T value) argument
333 extend(T value) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java28 * a value is accessed, it is moved to the head of a queue. When a value is
29 * added to a full cache, the value at the end of that queue is evicted and may
37 * assume a value will always be returned, even when there's a cache miss.
45 * protected int sizeOf(String key, Bitmap value) {
46 * return value.getByteCount();
54 * cache.put(key, value);
58 * <p>This class does not allow null to be used as a key or value. A return
59 * value of null from {@link #get}, {@link #put} or {@link #remove} is
110 * Returns the value fo
169 put(K key, V value) argument
296 safeSizeOf(K key, V value) argument
311 sizeOf(K key, V value) argument
[all...]
/frameworks/rs/cpp/
H A DType.cpp128 void Type::Builder::setX(uint32_t value) { argument
129 if(value < 1) {
132 mDimX = value;
135 void Type::Builder::setY(uint32_t value) { argument
136 if(value < 1) {
139 mDimY = value;
142 void Type::Builder::setZ(uint32_t value) { argument
143 if(value < 1) {
146 mDimZ = value;
163 void Type::Builder::setMipmaps(bool value) { argument
167 setFaces(bool value) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLruCache.java72 * Returns the value for {@code key} if it exists in the cache or can be
73 * created by {@code #create}. If a value was returned, it is moved to the
74 * head of the queue. This returns null if a value is not cached and cannot
93 * Attempt to create a value. This may take a long time, and the map
94 * may be different when create() returns. If a conflicting value was
95 * added to the map while create() was working, we leave that value in
96 * the map and release the created value.
126 * Caches {@code value} for {@code key}. The value is moved to the head of
129 * @return the previous value mappe
131 put(K key, V value) argument
248 safeSizeOf(K key, V value) argument
263 sizeOf(K key, V value) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DType.java33 * A nonzero value in the Y or Z dimensions indicates that the dimension is
88 * Return the value of the X dimension.
97 * Return the value of the Y dimension or 0 for a 1D allocation.
106 * Return the value of the Z dimension or 0 for a 1D or 2D allocation.
225 * @param value
227 public Builder setX(int value) { argument
228 if(value < 1) {
231 mDimX = value;
235 public Builder setY(int value) { argument
236 if(value <
243 setZ(int value) argument
251 setMipmaps(boolean value) argument
256 setFaces(boolean value) argument
[all...]
/frameworks/av/include/camera/
H A DCameraParameters2.h41 void set(const char *key, const char *value);
42 void set(const char *key, int value);
43 void setFloat(const char *key, float value);
44 // Look up string value by key.
119 ssize_t add(const KeyT& key, const ValueT& value) { argument
120 return mList.add(Pair(key, value));
168 ssize_t replaceValueFor(const KeyT& key, const ValueT& value) {
170 return add(key, value);
177 Pair(const KeyT& key, const ValueT& value) :
179 mValue(value) {}
[all...]
/frameworks/base/core/java/android/content/pm/
H A DVerifierDeviceIdentity.java149 final int value;
151 value = group - 'A';
153 value = group - ('2' - 26);
158 value = group - 'a';
161 value = 'O' - 'A';
164 value = 'I' - 'A';
169 output = (output << 5) | value;
173 if ((value & 0xF) != value) {
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java112 * Create a {@link Rational} value by approximating the float value as a rational.
118 * @param value a floating point value
121 public static Rational createRational(float value) { argument
122 if (Float.isNaN(value)) {
124 } else if (value == Float.POSITIVE_INFINITY) {
126 } else if (value == Float.NEGATIVE_INFINITY) {
128 } else if (value == 0.0f) {
132 // normal finite value
[all...]
/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsConfig.java93 * SIP Session Timer value (seconds).
105 * SIP_INVITE cancellation time out value. Integer format.
123 * SIP T1 timer value in seconds. See RFC 3261 for define.
129 * SIP T2 timer value in seconds. See RFC 3261 for define.
135 * SIP TF timer value in seconds. See RFC 3261 for define.
172 * Defines IMS feature value.
185 * Gets the value for IMS service/capabilities parameters used by IMS stack.
190 * @return the value in Integer format.
208 * Gets the value for IMS service/capabilities parameters used by IMS stack.
213 * @return value i
242 setProvisionedValue(int item, int value) argument
267 setProvisionedStringValue(int item, String value) argument
317 setFeatureValue(int feature, int network, int value, ImsConfigListener listener) argument
[all...]
/frameworks/av/include/drm/
H A DDrmMetadata.h83 const char* value = this->getAsByteArray(&key); local
84 if (NULL != value) {
85 delete[] value;
86 value = NULL;
94 status_t put(const String8* key, const char* value);
/frameworks/base/core/java/android/content/
H A DSharedPreferences.java50 * may be called even if a preference is set to its existing value.
70 * Set a String value in the preferences editor, to be written back once
74 * @param value The new value for the preference. Supplying {@code null}
75 * as the value is equivalent to calling {@link #remove(String)} with
81 Editor putString(String key, String value); argument
97 * Set an int value in the preferences editor, to be written back once
101 * @param value The new value for the preference.
106 Editor putInt(String key, int value); argument
118 putLong(String key, long value) argument
130 putFloat(String key, float value) argument
142 putBoolean(String key, boolean value) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableHighSpeedVideoConfiguration.java47 public void marshal(HighSpeedVideoConfiguration value, ByteBuffer buffer) { argument
48 buffer.putInt(value.getWidth());
49 buffer.putInt(value.getHeight());
50 buffer.putInt(value.getFpsMin());
51 buffer.putInt(value.getFpsMax());

Completed in 642 milliseconds

1234567891011>>