/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableEnum.java | 34 * by providing a manual value with {@link #registerEnumValues}.</p> 59 public void marshal(T value, ByteBuffer buffer) { argument 60 int enumValue = getEnumValue(value); 67 "Enum value %x too large to fit into unsigned byte", enumValue)); 84 // get the unsigned byte value; avoid sign extension 143 * <p>This enables get/set to correctly marshal the enum into a value that is C-compatible.</p> 162 * Get the numeric value from an enum. 164 * <p>This is usually the same as the ordinal value for 184 * Finds the enum corresponding to it's numeric value. Opposite of {@link #getEnumValue} method. 187 * @param value Th 190 getEnumFromValue(Class<T> enumType, int value) argument [all...] |
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiRecordListener.java | 108 private static int bcdByteToInt(byte value) { argument 109 return ((value >> 4) & 0xF) * 10 + value & 0xF; 137 * If it is {@code true}, {@link #getProgrammedInfo()} would have meaningful value and
|
/frameworks/base/core/java/android/net/http/ |
H A D | DelegatingSSLSession.java | 150 public void putValue(String name, Object value) { argument
|
/frameworks/base/core/java/android/net/nsd/ |
H A D | DnsSdTxtRecord.java | 35 * is an attribute-value pair. 65 * Set a key/value pair. Setting an existing key will replace its value. 67 * @param value matching value to key 69 public void set(String key, String value) { argument 74 if (value != null) { 75 valBytes = value.getBytes(); 107 * Get a value for a key 110 * @return The value associate 168 insert(byte[] keyBytes, byte[] value, int index) argument [all...] |
H A D | NsdServiceInfo.java | 99 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/core/java/android/os/ |
H A D | PersistableBundle.java | 91 Object value = map.get(key); 92 if (value instanceof Map) { 94 putPersistableBundle(key, new PersistableBundle((Map<String, Object>) value)); 95 } else if (!(value instanceof Integer) && !(value instanceof Long) && 96 !(value instanceof Double) && !(value instanceof String) && 97 !(value instanceof int[]) && !(value instanceof long[]) && 98 !(value instanceo 116 forPair(String key, String value) argument 138 putPersistableBundle(String key, PersistableBundle value) argument [all...] |
H A D | SELinux.java | 54 * @param value representing whether to set SELinux to enforcing 57 public static final native boolean setSELinuxEnforce(boolean value); argument 108 * Gets the value for the given SELinux boolean name. 115 * Sets the value for the given SELinux boolean name. 117 * @param value The new value of the SELinux boolean. 120 public static final native boolean setBooleanValue(String name, boolean value); argument
|
/frameworks/base/core/java/android/text/ |
H A D | PackedIntVector.java | 56 * Returns the value at the specified row and column. 61 * @return the value stored at the specified position. 78 int value = mValues[row * columns + column]; 82 value += valuegap[column + columns]; 85 return value; 89 * Sets the value at the specified row and column. 98 public void setValue(int row, int column, int value) { argument 109 value -= valuegap[column + mColumns]; 112 mValues[row * mColumns + column] = value; 116 * Sets the value a 123 setValueInternal(int row, int column, int value) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | JsonWriter.java | 27 * encoded value to a stream, one token at a time. The stream includes both 38 * Write each of the array's elements with the appropriate {@link #value} 43 * {@link #name} with the property's value. Write property values with the 44 * appropriate {@link #value} method or by nesting other objects or arrays. 88 * writer.name("id").value(message.getId()); 89 * writer.name("text").value(message.getText()); 103 * writer.name("name").value(user.getName()); 104 * writer.name("followers_count").value(user.getFollowersCount()); 110 * for (Double value : doubles) { 111 * writer.value(valu 299 value(String value) argument 324 value(boolean value) argument 337 value(double value) argument 351 value(long value) argument 364 value(Number value) argument 400 string(String value) argument [all...] |
H A D | LongSparseArray.java | 182 * Adds a mapping from the specified key to the specified value, 186 public void put(long key, E value) { argument 190 mValues[i] = value; 196 mValues[i] = value; 208 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); 214 * Returns the number of key-value mappings that this LongSparseArray 227 * the key from the <code>index</code>th key-value mapping that this 245 * the value from the <code>index</code>th key-value mapping that this 250 * <code>valueAt(0)</code> will return the value associate 268 setValueAt(int index, E value) argument 297 indexOfValue(E value) argument 328 append(long key, E value) argument [all...] |
H A D | SparseArray.java | 195 * Adds a mapping from the specified key to the specified value, 199 public void put(int key, E value) { argument 203 mValues[i] = value; 209 mValues[i] = value; 221 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); 227 * Returns the number of key-value mappings that this SparseArray 240 * the key from the <code>index</code>th key-value mapping that this 258 * the value from the <code>index</code>th key-value mapping that this 263 * <code>valueAt(0)</code> will return the value associate 281 setValueAt(int index, E value) argument 312 indexOfValue(E value) argument 343 append(int key, E value) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | HardwareCanvas.java | 118 public static void setProperty(String name, String value) { argument 119 GLES20Canvas.setProperty(name, value);
|
/frameworks/base/core/java/android/webkit/ |
H A D | CookieManager.java | 98 * @param value the cookie as a string, using the format of the 'Set-Cookie' 101 public abstract void setCookie(String url, String value); argument 112 * The value provided to the callback indicates whether the cookie was set successfully. 118 * @param value the cookie as a string, using the format of the 'Set-Cookie' 122 public abstract void setCookie(String url, String value, ValueCallback<Boolean> callback); argument 128 * @return value the cookies as a string, using the format of the 'Cookie' 138 * @return value the cookies as a string, using the format of the 'Cookie' 150 * @return value the cookies as a string, using the format of the 'Cookie' 174 * The value provided to the callback indicates whether any cookies were removed. 196 * The value provide [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SimpleCursorAdapter.java | 33 * is invoked. If the returned value is true, binding has occured. If the 34 * returned value is false and the view to bind is a TextView, 35 * {@link #setViewText(TextView, String)} is invoked. If the returned value 118 * is invoked. If the returned value is true, binding has occured. If the 119 * returned value is false and the view to bind is a TextView, 120 * {@link #setViewText(TextView, String)} is invoked. If the returned value is 198 * By default, the value will be treated as an image resource. If the 199 * value cannot be used as an image resource, the value is used as an 206 * @param value th 208 setViewImage(ImageView v, String value) argument [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnProfile.java | 114 public static VpnProfile decode(String key, byte[] value) { argument 120 String[] values = new String(value, StandardCharsets.UTF_8).split("\0", -1);
|
/frameworks/base/core/java/com/android/internal/preference/ |
H A D | YesNoPreference.java | 61 * Sets the value of this preference, and saves it to the persistent store 64 * @param value The value of the preference. 66 public void setValue(boolean value) { argument 67 mWasPositiveResult = value; 69 persistBoolean(value); 71 notifyDependencyChange(!value); 75 * Gets the value of this preference. 77 * @return The value of the preference.
|
/frameworks/base/core/jni/ |
H A D | android_util_Log.cpp | 46 static int toLevel(const char* value) argument 48 switch (value[0]) {
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 146 private void stageLong(long value, File file) throws Exception { argument 151 out.write(Long.toString(value));
|
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 30 inline static bool isZero(float value) { argument 31 return (value >= -NON_ZERO_EPSILON) && (value <= NON_ZERO_EPSILON); 34 inline static bool isPositive(float value) { argument 35 return value >= NON_ZERO_EPSILON; 39 * Clamps alpha value, and snaps when very near 0 or 1
|
/frameworks/base/location/java/android/location/ |
H A D | FusedBatchOptions.java | 31 // the default value is set to request fixes at no cost 37 public void setMaxPowerAllocationInMW(double value) { argument 38 mMaxPowerAllocationInMW = value; 45 public void setPeriodInNS(long value) { argument 46 mPeriodInNS = value;
|
H A D | GpsNavigationMessage.java | 104 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/base/location/lib/java/com/android/location/provider/ |
H A D | GmsFusedBatchOptions.java | 30 public void setMaxPowerAllocationInMW(double value) { argument 31 mOptions.setMaxPowerAllocationInMW(value); 38 public void setPeriodInNS(long value) { argument 39 mOptions.setPeriodInNS(value);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadataEditor.java | 53 * The value associated with this key is a {@link Rating} instance. 60 * The value associated with this key is a {@link Rating} instance. 199 * @param value The text for the given key, or {@code null} to signify there is no valid 204 public synchronized MediaMetadataEditor putString(int key, String value) argument 213 mEditorMetadata.putString(String.valueOf(key), value); 225 * {@link android.media.MediaMetadataRetriever#METADATA_KEY_DURATION} (with a value 228 * @param value The long value for the given key 233 public synchronized MediaMetadataEditor putLong(int key, long value) argument 242 mEditorMetadata.putLong(String.valueOf(key), value); 288 putObject(int key, Object value) argument [all...] |
H A D | Utils.java | 85 * Returns the index of the range that contains a value in a sorted array of distinct ranges. 87 * @param value the value to search for 88 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise, 89 * the return value is {@code (-1-index)} for the {@code index} of the range that is 90 * immediately following {@code value}. 93 int binarySearchDistinctRanges(Range<T>[] ranges, T value) { argument 94 return Arrays.binarySearch(ranges, Range.create(value, value), 235 int value [all...] |
/frameworks/base/media/java/android/media/audiofx/ |
H A D | BassBoost.java | 100 int[] value = new int[1]; 101 checkStatus(getParameter(PARAM_STRENGTH_SUPPORTED, value)); 102 mStrengthSupported = (value[0] != 0); 107 * strength is supported and the setStrength() method always rounds to that value. 117 * supported value. You can use the {@link #getRoundedStrength()} method to query the 118 * (possibly rounded) value that was actually set. 140 short[] value = new short[1]; 141 checkStatus(getParameter(PARAM_STRENGTH, value)); 142 return value[0]; 147 * parameter value ha 159 onParameterChange(BassBoost effect, int status, int param, short value) argument 170 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument [all...] |