Searched defs:value (Results 276 - 300 of 922) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java35 * 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 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/core/java/android/os/
H A DPersistableBundle.java49 public static boolean isValidType(Object value) { argument
50 return (value instanceof Integer) || (value instanceof Long) ||
51 (value instanceof Double) || (value instanceof String) ||
52 (value instanceof int[]) || (value instanceof long[]) ||
53 (value instanceof double[]) || (value instanceof String[]) ||
54 (value instanceo
120 forPair(String key, String value) argument
142 putPersistableBundle(@ullable String key, @Nullable PersistableBundle value) argument
[all...]
/frameworks/base/core/java/android/text/
H A DPackedIntVector.java56 * 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 DJsonWriter.java27 * 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 DLongSparseArray.java182 * 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 DSparseArray.java138 * Removes the mapping from the specified key, if there was any, returning the old value.
213 * Adds a mapping from the specified key to the specified value,
217 public void put(int key, E value) { argument
221 mValues[i] = value;
227 mValues[i] = value;
239 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value);
245 * Returns the number of key-value mappings that this SparseArray
258 * the key from the <code>index</code>th key-value mapping that this
276 * the value from the <code>index</code>th key-value mappin
299 setValueAt(int index, E value) argument
330 indexOfValue(E value) argument
361 append(int key, E value) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DCookieManager.java95 * @param value the cookie as a string, using the format of the 'Set-Cookie'
98 public abstract void setCookie(String url, String value); argument
109 * The value provided to the callback indicates whether the cookie was set successfully.
115 * @param value the cookie as a string, using the format of the 'Set-Cookie'
119 public abstract void setCookie(String url, String value, ValueCallback<Boolean> callback); argument
125 * @return value the cookies as a string, using the format of the 'Cookie'
135 * @return value the cookies as a string, using the format of the 'Cookie'
147 * @return value the cookies as a string, using the format of the 'Cookie'
171 * The value provided to the callback indicates whether any cookies were removed.
193 * The value provide
[all...]
/frameworks/base/core/java/android/widget/
H A DSimpleCursorAdapter.java33 * 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 DVpnProfile.java114 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 DYesNoPreference.java61 * 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/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java146 private void stageLong(long value, File file) throws Exception { argument
151 out.write(Long.toString(value));
/frameworks/base/libs/hwui/
H A DProperties.cpp114 void Properties::overrideProperty(const char* name, const char* value) { argument
116 sDisableProfileBars = !strcmp(value, "true");
120 overrideAmbientRatio = std::min(std::max(atof(value), 0.0), 10.0);
124 overrideLightRadius = std::min(std::max(atof(value), 0.0), 3000.0);
128 overrideLightPosY = std::min(std::max(atof(value), 0.0), 3000.0);
132 overrideLightPosZ = std::min(std::max(atof(value), 0.0), 3000.0);
136 overrideAmbientShadowStrength = atoi(value);
140 overrideSpotShadowStrength = atoi(value);
144 ALOGD("failed overriding property %s to %s", name, value);
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h32 inline static bool isZero(float value) { argument
33 return (value >= -NON_ZERO_EPSILON) && (value <= NON_ZERO_EPSILON);
36 inline static bool isPositive(float value) { argument
37 return value >= NON_ZERO_EPSILON;
41 * Clamps alpha value, and snaps when very near 0 or 1
69 * approximation of an arc, with a given threshold value.
/frameworks/base/location/java/android/location/
H A DFusedBatchOptions.java31 // the default value is set to request fixes at no cost
39 public void setMaxPowerAllocationInMW(double value) { argument
40 mMaxPowerAllocationInMW = value;
47 public void setPeriodInNS(long value) { argument
48 mPeriodInNS = value;
55 public void setSmallestDisplacementMeters(float value) { argument
56 mSmallestDisplacementMeters = value;
/frameworks/base/location/lib/java/com/android/location/provider/
H A DGmsFusedBatchOptions.java30 public void setMaxPowerAllocationInMW(double value) { argument
31 mOptions.setMaxPowerAllocationInMW(value);
38 public void setPeriodInNS(long value) { argument
39 mOptions.setPeriodInNS(value);
46 public void setSmallestDisplacementMeters(float value) { argument
47 mOptions.setSmallestDisplacementMeters(value);
/frameworks/base/media/java/android/media/
H A DMediaMetadataEditor.java53 * 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 DUtils.java83 * Returns the index of the range that contains a value in a sorted array of distinct ranges.
85 * @param value the value to search for
86 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise,
87 * the return value is {@code (-1-index)} for the {@code index} of the range that is
88 * immediately following {@code value}.
91 int binarySearchDistinctRanges(Range<T>[] ranges, T value) { argument
92 return Arrays.binarySearch(ranges, Range.create(value, value),
236 int value
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DBassBoost.java100 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...]
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/media/mca/filterfw/jni/
H A Djni_native_program.cpp108 jstring value) {
109 if (!value) {
110 ALOGE("Native Program: Attempting to set null value for key %s!",
114 const std::string c_value = ToCppString(env, value);
105 Java_android_filterfw_core_NativeProgram_callNativeSetValue(JNIEnv* env, jobject thiz, jstring key, jstring value) argument
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothMidiDevice.java282 private static void logByteArray(String prefix, byte[] value, int offset, int count) { argument
285 builder.append(String.format("0x%02X", value[i]));
286 if (i != value.length - 1) {
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectParameter.java46 public void displayValue(int value, boolean fromTouch) { argument
47 String text = Integer.toString(value)+" "+mUnit;
50 mSeekBar.setProgress(value - mMin);
58 public abstract void setParameter(Integer value); argument
72 int value = progress + mMin;
74 setParameter(value);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DSortingCursorWrapper.java171 private static void binarySort(int[] position, String[] value) { argument
175 final String pivotValue = value[start];
184 final String rhs = value[mid];
198 value[left + 2] = value[left + 1];
201 value[left + 1] = value[left];
205 System.arraycopy(value, left, value, left + 1, n);
209 value[lef
217 binarySort(int[] position, long[] value) argument
[all...]

Completed in 536 milliseconds

<<11121314151617181920>>