/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | Resources_Delegate.java | 139 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); 141 if (value != null) { 142 return ResourceHelper.getDrawable(value.getSecond(), resources.mContext, theme); 159 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); 161 if (value != null) { 162 ResourceValue resourceValue = value.getSecond(); 166 // Check if the value passed is a file. If it is, mostly likely, user is referencing 215 Pair<String, ResourceValue> value = getResourceValue(resources, id, mPlatformResourceFlag); 217 if (value != null) { 218 ResourceValue resValue = value 859 openRawResource(Resources resources, int id, TypedValue value) argument [all...] |
H A D | BridgeTypedArray.java | 77 // want to save on the check against empty, each time a resource value is requested. 93 * A bridge-specific method that sets a value in the type array 94 * @param index the index of the value in the TypedArray 97 * @param value the value of the attribute 99 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { argument 100 mResourceData[index] = value; 109 * {@link #getIndexCount()} to return the proper value. 178 * Retrieve the styled string value for the attribute at <var>index</var>. 192 * Retrieve the string value fo [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | XmlUtils.java | 62 convertValueToList(CharSequence value, String[] options, int defaultValue) argument 64 if (null != value) { 66 if (value.equals(options[i])) 75 convertValueToBoolean(CharSequence value, boolean defaultValue) argument 79 if (null == value) 82 if (value.equals("1") 83 || value.equals("true") 84 || value.equals("TRUE")) 101 int value; 136 public static int convertValueToUnsignedInt(String value, in argument 1541 writeIntAttribute(XmlSerializer out, String name, int value) argument 1564 writeLongAttribute(XmlSerializer out, String name, long value) argument 1578 writeFloatAttribute(XmlSerializer out, String name, float value) argument 1598 writeBooleanAttribute(XmlSerializer out, String name, boolean value) argument 1608 writeUriAttribute(XmlSerializer out, String name, Uri value) argument 1619 writeStringAttribute(XmlSerializer out, String name, String value) argument 1635 writeByteArrayAttribute(XmlSerializer out, String name, byte[] value) argument 1652 writeBitmapAttribute(XmlSerializer out, String name, Bitmap value) argument [all...] |
/frameworks/base/core/java/android/hardware/radio/ |
H A D | RadioMetadata.java | 238 * Returns the text value associated with the given key as a String, or null 241 * @param key The key the value is stored under 242 * @return a String value, or null 249 * Returns the value associated with the given key, 252 * @param key The key the value is stored under 253 * @return an int value 262 * @param key The key the value is stored under 270 // ignore, value was not a bitmap 281 // ignore, value was not a clock. 378 Object value 406 putString(String key, String value) argument 429 putInt(String key, int value) argument 453 putBitmap(String key, Bitmap value) argument 504 putIntFromNative(int nativeKey, int value) argument 514 putStringFromNative(int nativeKey, String value) argument 524 putBitmapFromNative(int nativeKey, byte[] value) argument [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AMessage.h | 67 // AMessage. The default value here is arbitrarily set to 255. 97 void setInt32(const char *name, int32_t value); 98 void setInt64(const char *name, int64_t value); 99 void setSize(const char *name, size_t value); 100 void setFloat(const char *name, float value); 101 void setDouble(const char *name, double value); 102 void setPointer(const char *name, void *value); 115 bool findInt32(const char *name, int32_t *value) const; 116 bool findInt64(const char *name, int64_t *value) const; 117 bool findSize(const char *name, size_t *value) cons [all...] |
/frameworks/base/core/java/android/os/ |
H A D | BaseBundle.java | 181 * TODO: optimize this later (getting just the value part of a Bundle 183 * with a special single-value Map implementation/serialization. 185 * Note: value in single-pair Bundle may be null. 399 * Inserts a Boolean value into the mapping of this Bundle, replacing 400 * any existing value for the given key. Either key or value may be null. 403 * @param value a boolean 405 public void putBoolean(@Nullable String key, boolean value) { argument 407 mMap.put(key, value); 411 * Inserts a byte value int 417 putByte(@ullable String key, byte value) argument 429 putChar(@ullable String key, char value) argument 441 putShort(@ullable String key, short value) argument 453 putInt(@ullable String key, int value) argument 465 putLong(@ullable String key, long value) argument 477 putFloat(@ullable String key, float value) argument 489 putDouble(@ullable String key, double value) argument 501 putString(@ullable String key, @Nullable String value) argument 513 putCharSequence(@ullable String key, @Nullable CharSequence value) argument 525 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument 537 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument 549 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument 561 putSerializable(@ullable String key, @Nullable Serializable value) argument 573 putBooleanArray(@ullable String key, @Nullable boolean[] value) argument 585 putByteArray(@ullable String key, @Nullable byte[] value) argument 597 putShortArray(@ullable String key, @Nullable short[] value) argument 609 putCharArray(@ullable String key, @Nullable char[] value) argument 621 putIntArray(@ullable String key, @Nullable int[] value) argument 633 putLongArray(@ullable String key, @Nullable long[] value) argument 645 putFloatArray(@ullable String key, @Nullable float[] value) argument 657 putDoubleArray(@ullable String key, @Nullable double[] value) argument 669 putStringArray(@ullable String key, @Nullable String[] value) argument 681 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument 701 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument 717 typeWarning(String key, Object value, String className, ClassCastException e) argument [all...] |
/frameworks/base/media/java/android/media/audiofx/ |
H A D | Equalizer.java | 151 byte[] value = new byte[PARAM_STRING_SIZE_MAX]; 156 checkStatus(getParameter(param, value)); 158 while (value[length] != 0) length++; 160 mPresetNames[i] = new String(value, 0, length, "ISO-8859-1"); 205 * Sets the given equalizer band to the given gain value. 218 short[] value = new short[1]; 222 value[0] = level; 223 checkStatus(setParameter(param, value)); 372 * parameter value has changed. 376 * Method called when a parameter value ha 385 onParameterChange(Equalizer effect, int status, int param1, int param2, int value) argument 396 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument [all...] |
/frameworks/rs/cpp/ |
H A D | Type.cpp | 138 void Type::Builder::setX(uint32_t value) { argument 139 if(value < 1) { 142 mDimX = value; 145 void Type::Builder::setY(uint32_t value) { argument 146 if(value < 1) { 149 mDimY = value; 152 void Type::Builder::setZ(uint32_t value) { argument 153 if(value < 1) { 156 mDimZ = value; 176 void Type::Builder::setMipmaps(bool value) { argument 180 setFaces(bool 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. 306 * @param value 308 public Builder setX(int value) { argument 309 if(value < 1) { 312 mDimX = value; 316 public Builder setY(int value) { argument 317 if(value < 324 setZ(int value) argument 332 setMipmaps(boolean value) argument 337 setFaces(boolean value) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ADebug.cpp | 38 const char *name, const char *value, long def) { 40 const char *next = value, *current; 56 errno = 0; // strtol does not clear errno, but it can be set for any return value 81 // update value 90 char value[PROPERTY_VALUE_MAX]; local 91 if (property_get(propertyName, value, NULL)) { 92 def = GetLevelFromSettingsString(name, value, def); 148 char value[PROPERTY_VALUE_MAX]; 149 if (property_get("ro.build.type", value, NULL)) { 150 if (strcmp(value, "experimenta 37 GetLevelFromSettingsString( const char *name, const char *value, long def) argument [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGattServerCallback.java | 57 * @param offset Offset into the value of the characteristic 76 * @param offset The offset given for the value 77 * @param value The value the client wants to assign to the characteristic 82 int offset, byte[] value) { 93 * @param offset Offset into the value of the characteristic 112 * @param offset The offset given for the value 113 * @param value The value the client wants to assign to the descriptor 118 int offset, byte[] value) { 79 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument 115 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument [all...] |
H A D | IBluetoothPan.aidl | 29 void setBluetoothTethering(boolean value);
|
/frameworks/base/core/java/android/hardware/camera2/marshal/ |
H A D | Marshaler.java | 69 * Marshal the specified object instance (value) into a byte buffer. 72 * the {@link #calculateMarshalSize marshal size} of {@code value}.</p> 74 * @param value the value of type T that we wish to write into the byte buffer 77 public abstract void marshal(T value, ByteBuffer buffer); argument 80 * Get the size in bytes for how much space would be required to write this {@code value} 84 * then this method will always return the same value (and particularly, it will return 85 * an equivalent value to {@link #getNativeSize()}.</p> 89 * @param value the value o 92 calculateMarshalSize(T value) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryablePair.java | 91 public void marshal(Pair<T1, T2> value, ByteBuffer buffer) { argument 92 if (value.first == null) { 94 } else if (value.second == null) { 98 mNestedTypeMarshalerFirst.marshal(value.first, buffer); 99 mNestedTypeMarshalerSecond.marshal(value.second, buffer); 133 public int calculateMarshalSize(Pair<T1, T2> value) { argument 139 int firstSize = mNestedTypeMarshalerFirst.calculateMarshalSize(value.first); 140 int secondSize = mNestedTypeMarshalerSecond.calculateMarshalSize(value.second);
|
/frameworks/base/core/java/android/text/ |
H A D | Annotation.java | 22 * Annotations are simple key-value pairs that are preserved across 30 public Annotation(String key, String value) { argument 32 mValue = value;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DrawableHolder.java | 61 * Adds an animation that interpolates given property from its current value 62 * to the given value. 67 * @param toValue the target value 158 public void setX(float value) { argument 159 mX = value; 162 public void setY(float value) { argument 163 mY = value; 166 public void setScaleX(float value) { argument 167 mScaleX = value; 170 public void setScaleY(float value) { argument [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | statistics.h | 28 void Add(float value); 34 float Pdf(float value) const;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ByteArrayHelpers.java | 171 Number value = numbers[i]; 172 Class<? extends Number> klass = value.getClass(); 177 byteBuffer.putInt((Integer)value); 179 byteBuffer.putFloat((Float)value); 181 byteBuffer.putDouble((Double)value); 183 byteBuffer.putShort((Short)value); 185 byteBuffer.putLong((Long)value); 187 byteBuffer.put((Byte)value);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Prefs.java | 77 public static void putBoolean(Context context, @Key String key, boolean value) { argument 78 get(context).edit().putBoolean(key, value).apply(); 85 public static void putInt(Context context, @Key String key, int value) { argument 86 get(context).edit().putInt(key, value).apply(); 93 public static void putLong(Context context, @Key String key, long value) { argument 94 get(context).edit().putLong(key, value).apply(); 101 public static void putString(Context context, @Key String key, String value) { argument 102 get(context).edit().putString(key, value).apply();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | AirplaneModeTile.java | 51 protected void handleValueChanged(int value) { 52 handleRefreshState(value); 64 MetricsLogger.action(mContext, getMetricsCategory(), !mState.value); 65 setEnabled(!mState.value); 86 final int value = arg instanceof Integer ? (Integer)arg : mSetting.getValue(); 87 final boolean airplaneMode = value != 0; 88 state.value = airplaneMode; 107 if (mState.value) {
|
H A D | DataSaverTile.java | 60 if (mState.value 84 mState.value = !mDataSaverController.isDataSaverEnabled(); 85 MetricsLogger.action(mContext, getMetricsCategory(), mState.value); 86 mDataSaverController.setDataSaverEnabled(mState.value); 87 refreshState(mState.value); 97 state.value = arg instanceof Boolean ? (Boolean) arg 101 state.icon = ResourceIcon.get(state.value ? R.drawable.ic_data_saver 114 if (mState.value) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | Util.java | 124 public static String audioManagerFlagsToString(int value) { argument 125 return bitFieldToString(value, AUDIO_MANAGER_FLAGS, AUDIO_MANAGER_FLAG_NAMES); 128 private static String bitFieldToString(int value, int[] values, String[] names) { argument 129 if (value == 0) return ""; 132 if ((value & values[i]) != 0) { 136 value &= ~values[i]; 138 if (value != 0) { 140 sb.append("UNKNOWN_").append(value);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/ |
H A D | IntArray.java | 25 public void add(int value) { argument 31 mData[mSize++] = value;
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | UnmodifiableSparseArray.java | 53 public int indexOfValue(E value) { argument 54 return mArray.indexOfValue(value);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameValue.java | 29 public void setValue(Object value) { argument 31 backing.setData(value);
|