Searched refs:value (Results 276 - 300 of 1696) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/util/
H A DIntArray.java55 * Appends the specified value to the end of this array.
57 public void add(int value) { argument
58 add(mSize, value);
62 * Inserts a value at the specified position in this array.
66 public void add(int index, int value) { argument
77 mValues[index] = value;
82 * Searches the array for the specified value using the binary search algorithm. The array must
85 * the specified value, there is no guarantee which one will be found.
87 * @param value The value t
95 binarySearch(int value) argument
154 indexOf(int value) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DDurationsTable.java31 * and the new value.
42 * Add the value into the value stored for the state.
45 * and the new value.
47 public void addDuration(int state, long value) { argument
49 setValue(key, getValue(key) + value);
/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.h49 static inline hb_position_t SkScalarToHBFixed(SkScalar value) { argument
50 return HBFloatToFixed(SkScalarToFloat(value));
/frameworks/base/location/java/android/location/
H A DGnssMeasurement.java212 public void setSvid(int value) { argument
213 mSvid = value;
219 * <p>The return value is one of those constants with {@code CONSTELLATION_} prefix in
232 public void setConstellationType(@GnssStatus.ConstellationType int value) { argument
233 mConstellationType = value;
242 * <p>The sign of this value is given by the following equation:
246 * <p>The value provides an individual time-stamp for the measurement, and allows sub-nanosecond
258 public void setTimeOffsetNanos(double value) { argument
259 mTimeOffsetNanos = value;
267 * <p>This value help
278 setState(int value) argument
432 setReceivedSvTimeNanos(long value) argument
448 setReceivedSvTimeUncertaintyNanos(long value) argument
468 setCn0DbHz(double value) argument
497 setPseudorangeRateMetersPerSecond(double value) argument
515 setPseudorangeRateUncertaintyMetersPerSecond(double value) argument
534 setAccumulatedDeltaRangeState(int value) argument
590 setAccumulatedDeltaRangeMeters(double value) argument
613 setAccumulatedDeltaRangeUncertaintyMeters(double value) argument
680 setCarrierCycles(long value) argument
724 setCarrierPhase(double value) argument
763 setCarrierPhaseUncertainty(double value) argument
791 setMultipathIndicator(@ultipathIndicator int value) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DProgramVariable.java41 public void setValue(Object value) { argument
46 mProgram.setHostValue(mVarName, value);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraErrorCollector.java86 * Adds a failure to the table if {@code matcher} does not match {@code value}.
91 public <T> void checkThat(final T value, final Matcher<T> matcher) { argument
92 super.checkThat(mCameraMsg, value, matcher);
97 * {@code matcher} does not match {@code value}. Execution continues, but
102 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { argument
103 super.checkThat(mCameraMsg + reason, value, matcher);
141 * @param expected Expected value to be checked against.
142 * @param actual Actual value to be checked.
149 throw new IllegalArgumentException("expected value shouldn't be null");
165 * @param expected Expected value t
415 expectInRange(String msg, T value, T min, T max) argument
[all...]
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportPrefs.java42 static void setWarningState(Context context, int value) { argument
45 prefs.edit().putInt(KEY_WARNING_STATE, value).apply();
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DColorInversionTile.java49 protected void handleValueChanged(int value, boolean observedChange) {
50 handleRefreshState(value);
84 MetricsLogger.action(mContext, getMetricsCategory(), !mState.value);
85 mSetting.setValue(mState.value ? 0 : 1);
95 final int value = arg instanceof Integer ? (Integer) arg : mSetting.getValue();
96 final boolean enabled = value != 0;
97 state.value = enabled;
112 if (mState.value) {
/frameworks/base/rs/java/android/renderscript/
H A DByte2.java70 * @param value
72 public void add(byte value) { argument
73 x += value;
74 y += value;
120 * @param value
122 public void sub(byte value) { argument
123 x -= value;
124 y -= value;
170 * @param value
172 public void mul(byte value) { argument
222 div(byte value) argument
344 setAt(int i, byte value) argument
363 addAt(int i, byte value) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseIntArray.java53 public int indexOfValue(int value) { argument
54 return mArray.indexOfValue(value);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DSwitchBindingAdapter.java33 public static void setSwitchTextAppearance(Switch view, int value) { argument
34 view.setSwitchTextAppearance(null, value);
H A DSwitchCompatBindingAdapter.java30 public static void setSwitchTextAppearance(SwitchCompat view, int value) { argument
31 view.setSwitchTextAppearance(null, value);
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DBasicObject.java57 public String boolMethod(boolean value) { argument
58 return value ? "true" : "false";
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2RequestSettingsSet.java69 * <p>Providing a {@code null} {@code value} will indicate a forced use of
76 * @param value The new selection for that setting, or {@code null} to force
79 * {@code value} is different from any already stored.
83 public <T> boolean set(Key<T> key, T value) { argument
89 // Only save the value if it's different from the one we already have
90 if (!mDictionary.containsKey(key) || !Objects.equals(value, currentValue)) {
91 mDictionary.put(key, value);
107 * specified setting already had a value or was forced to default.
146 * to its default value or simply unset. While {@link #get} will return
151 * @return Whether that setting has a value tha
172 matches(Key<T> key, T value) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DIPredictor.aidl22 boolean setPredictorParameter(in String key, in String value);
/frameworks/native/services/sensorservice/
H A Dtraits.h47 enum { value = -1 }; enumerator in enum:android::TL::IndexOf::__anon1541
52 enum { value = 0 }; enumerator in enum:android::TL::IndexOf::__anon1542
58 enum { temp = IndexOf<Tail, T>::value };
60 enum { value = temp == -1 ? -1 : 1 + temp }; enumerator in enum:android::TL::IndexOf::__anon1544
104 enum { isStdUnsignedInt = TL::IndexOf<UnsignedInts, T>::value >= 0 };
105 enum { isStdSignedInt = TL::IndexOf<SignedInts, T>::value >= 0 };
106 enum { isStdIntegral = TL::IndexOf<OtherInts, T>::value >= 0 || isStdUnsignedInt || isStdSignedInt };
107 enum { isStdFloat = TL::IndexOf<Floats, T>::value >= 0 };
/frameworks/base/tools/aapt2/
H A DResourceParser_test.cpp74 EXPECT_EQ(std::u16string(u" hey there "), *str->value);
83 EXPECT_EQ(std::u16string(u"?123"), *str->value);
102 EXPECT_EQ(StringPiece16(u"There are %1$d apples"), StringPiece16(*str->value));
109 // The Android runtime treats a value of android::Res_value::TYPE_NULL as
110 // a non-existing value, and this causes problems in styles when trying to resolve
112 // with a data value of 0.
115 EXPECT_EQ(uint16_t(android::Res_value::TYPE_REFERENCE), integer->value.dataType);
116 EXPECT_EQ(0u, integer->value.data);
125 EXPECT_EQ(uint16_t(android::Res_value::TYPE_NULL), integer->value.dataType);
126 EXPECT_EQ(uint32_t(android::Res_value::DATA_NULL_EMPTY), integer->value
467 String* value = test::getValue<String>(&mTable, u"@string/foo"); local
479 String* value = test::getValue<String>(&mTable, u"@string/foo"); local
493 String* value = test::getValue<String>(&mTable, u"@string/foo"); local
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaMetadataRetrieverTest.java247 String value = null;
248 Log.v(TAG, (value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER)) == null? "not found": value);
249 Log.v(TAG, (value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION)) == null? "not found": value);
250 Log.v(TAG, (value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_NUM_TRACKS)) == null? "not found": value);
251 Log.v(TAG, (value = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM)) == null? "not found": value);
252 Log.v(TAG, (value
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java54 * affected setting and supplying its pre-restore value for comparison.
106 * @param value the string value of the setting
107 * @return whether to continue with writing the value to the database. In
109 * and in some cases the property value needs to be modified before setting.
112 Uri destination, String name, String value) {
134 setBrightness(Integer.parseInt(value));
137 setSoundEffects(Integer.parseInt(value) == 1);
140 setGpsLocation(value);
143 setAutoRestore(Integer.parseInt(value)
111 restoreValue(Context context, ContentResolver cr, ContentValues contentValues, Uri destination, String name, String value) argument
175 onBackupValue(String name, String value) argument
207 setRingtone(String name, String value) argument
226 getCanonicalRingtoneValue(String value) argument
272 setGpsLocation(String value) argument
[all...]
/frameworks/native/include/binder/
H A DPersistableBundle.h49 * Setters for PersistableBundle. Adds a a key-value pair instantiated with
50 * |key| and |value| into the member map appropriate for the type of |value|.
51 * If there is already an existing value for |key|, |value| will replace it.
53 void putBoolean(const String16& key, bool value);
54 void putInt(const String16& key, int32_t value);
55 void putLong(const String16& key, int64_t value);
56 void putDouble(const String16& key, double value);
57 void putString(const String16& key, const String16& value);
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
H A DAppCompatResources.java112 return entry.value;
124 @NonNull ColorStateList value) {
131 entries.append(resId, new ColorStateListCacheEntry(value,
139 final TypedValue value = getTypedValue();
140 r.getValue(resId, value, true);
142 return value.type >= TypedValue.TYPE_FIRST_COLOR_INT
143 && value.type <= TypedValue.TYPE_LAST_COLOR_INT;
157 final ColorStateList value; field in class:AppCompatResources.ColorStateListCacheEntry
160 ColorStateListCacheEntry(@NonNull ColorStateList value, argument
162 this.value
123 addColorStateListToCache(@onNull Context context, @ColorRes int resId, @NonNull ColorStateList value) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DParsedMessage.cpp47 bool ParsedMessage::findString(const char *name, AString *value) const {
54 value->clear();
59 *value = mDict.valueAt(index);
63 bool ParsedMessage::findInt32(const char *name, int32_t *value) const {
71 *value = strtol(stringValue.c_str(), &end, 10);
74 *value = 0;
131 AString &value = mDict.editValueAt(lastDictIndex); local
132 value.append(line);
233 const AString &value = mDict.valueAt(i); local
241 line.append(value);
252 GetAttribute( const char *s, const char *key, AString *value) argument
282 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java88 public V put(K key, V value) { argument
91 if (value == null) {
97 if (value.isEligibleForPooling()) {
98 prev = mCache.put(key, value);
100 prev = mNonPooledCache.put(key, value);
110 public void offer(V value) { argument
112 if (value.getRefCount() != 0 || !value.isEligibleForPooling()) {
114 throw new IllegalArgumentException("unexpected offer of an invalid object: " + value);
116 mPool.offer(value);
165 sizeOf(V value) argument
227 sizeOf(K key, V value) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DPositionMap.java177 * Adds a mapping from the specified key to the specified value,
181 public void put(int key, E value) { argument
185 mValues[i] = value;
191 mValues[i] = value;
223 mValues[i] = value;
229 * Returns the number of key-value mappings that this SparseArray
242 * the key from the <code>index</code>th key-value mapping that this
255 * the value from the <code>index</code>th key-value mapping that this
269 * value fo
272 setValueAt(int index, E value) argument
303 indexOfValue(E value) argument
334 append(int key, E value) argument
440 binarySearch(int[] array, int size, int value) argument
[all...]
/frameworks/base/core/java/android/net/
H A DUrlQuerySanitizer.java57 * <li>Subclass UrlQuerySanitizer.ValueSanitizer to define your own value
65 * A simple tuple that holds parameter-value pairs.
70 * Construct a parameter-value tuple.
72 * @param value an unencoded value
75 String value) {
77 mValue = value;
84 * The unencoded value
101 * A functor used to sanitize a single query value.
106 * Sanitize an unencoded value
74 ParameterValuePair(String parameter, String value) argument
110 sanitize(String value) argument
302 sanitize(String value) argument
350 trimWhitespace(String value) argument
771 parseEntry(String parameter, String value) argument
790 addSanitizedEntry(String parameter, String value) argument
[all...]

Completed in 759 milliseconds

<<11121314151617181920>>