/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 56 * @param value the string value of the setting 57 * @return whether to continue with writing the value to the database. In 59 * and in some cases the property value needs to be modified before setting. 61 public boolean restoreValue(String name, String value) { argument 63 setBrightness(Integer.parseInt(value)); 65 setSoundEffects(Integer.parseInt(value) == 1); 67 setGpsLocation(value); 70 setAutoRestore(Integer.parseInt(value) == 1); 75 setRingtone(name, value); 81 onBackupValue(String name, String value) argument 113 setRingtone(String name, String value) argument 132 getCanonicalRingtoneValue(String value) argument 167 setGpsLocation(String value) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Int2.java | 74 * @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 D | Long2.java | 74 * @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 D | Short2.java | 77 * @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 D | AaptXml.cpp | 28 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 D | RetryManager.java | 35 * 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 D | Headers.java | 383 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 D | AMessage.h | 46 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 D | MtpProperty.cpp | 295 int value = *values++; local 298 mEnumValues[i].u.i8 = value; 301 mEnumValues[i].u.u8 = value; 304 mEnumValues[i].u.i16 = value; 307 mEnumValues[i].u.u16 = value; 310 mEnumValues[i].u.i32 = value; 313 mEnumValues[i].u.u32 = value; 316 mEnumValues[i].u.i64 = value; 319 mEnumValues[i].u.u64 = value; 341 buffer = " default value 380 print(MtpPropertyValue& value, MtpString& buffer) argument 423 readValue(MtpDataPacket& packet, MtpPropertyValue& value) argument 478 writeValue(MtpDataPacket& packet, MtpPropertyValue& value) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | BaseBundle.java | 143 * 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 public 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 D | LruCache.java | 24 * 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 D | Range.java | 100 * 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 D | LruCache.java | 28 * 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 D | Type.cpp | 128 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 D | LruCache.java | 72 * 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 D | Type.java | 33 * 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 D | CameraParameters2.h | 41 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 D | VerifierDeviceIdentity.java | 149 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 D | ParamsUtils.java | 112 * 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/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | ColorInversionTile.java | 44 protected void handleValueChanged(int value, boolean observedChange) { 45 if (value != 0 || observedChange) { 49 handleRefreshState(value); 87 mSetting.setValue(mState.value ? 0 : 1); 94 if (mState.value) return; // don't allow usage reset if inversion is active 107 final int value = arg instanceof Integer ? (Integer) arg : mSetting.getValue(); 108 final boolean enabled = value != 0; 110 state.value = enabled; 117 if (mState.value) {
|
/frameworks/av/include/drm/ |
H A D | DrmMetadata.h | 83 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 D | SharedPreferences.java | 50 * 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 D | MarshalQueryableHighSpeedVideoConfiguration.java | 47 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());
|
H A D | MarshalQueryableRect.java | 41 public void marshal(Rect value, ByteBuffer buffer) { argument 42 buffer.putInt(value.left); 43 buffer.putInt(value.top); 44 buffer.putInt(value.width()); 45 buffer.putInt(value.height());
|
H A D | MarshalQueryableStreamConfiguration.java | 45 public void marshal(StreamConfiguration value, ByteBuffer buffer) { argument 46 buffer.putInt(value.getFormat()); 47 buffer.putInt(value.getWidth()); 48 buffer.putInt(value.getHeight()); 49 buffer.putInt(value.isInput() ? 1 : 0);
|