Searched defs:value (Results 101 - 125 of 1454) sorted by relevance

1234567891011>>

/frameworks/support/compat/src/main/java/androidx/core/math/
H A DMathUtils.java27 * This method takes a numerical value and ensures it fits in a given numerical range. If the
32 * @param value the value to be clamped.
33 * @param min minimum resulting value.
34 * @param max maximum resulting value.
36 * @return the clamped value.
38 public static float clamp(float value, float min, float max) { argument
39 if (value < min) {
41 } else if (value > max) {
44 return value;
59 clamp(double value, double min, double max) argument
80 clamp(int value, int min, int max) argument
[all...]
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
H A DFloatValueHolder.java20 * <p>FloatValueHolder holds a float value. FloatValueHolder provides a setter and a getter (
21 * i.e. {@link #setValue(float)} and {@link #getValue()}) to access this float value. Animations can
23 * FloatValueHolder will have its value updated via {@link #setValue(float)}. The caller can
24 * obtain the up-to-date animation value via {@link FloatValueHolder#getValue()}.
43 * Constructs a holder for a float value that is initialized to 0.
49 * Constructs a holder for a float value that is initialized to the input value.
51 * @param value the value to initialize the value hel
53 FloatValueHolder(float value) argument
62 setValue(float value) argument
[all...]
H A DForce.java26 boolean isAtEquilibrium(float value, float velocity); argument
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/
H A DBasicTest.java121 private Bundle createIntBundle(int value) { argument
123 bundle.putInt("key", value);
/frameworks/av/camera/include/camera/
H A DCameraParameters2.h41 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/av/include/camera/
H A DCameraParameters2.h41 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/av/media/img_utils/src/
H A DTiffEntry.cpp37 const sp<TiffIfd>* TiffEntry::forceValidType<sp<TiffIfd> >(TagType type, const sp<TiffIfd>* value) { argument
39 return value;
47 const uint8_t* TiffEntry::forceValidType<uint8_t>(TagType type, const uint8_t* value) { argument
49 return value;
57 const int8_t* TiffEntry::forceValidType<int8_t>(TagType type, const int8_t* value) { argument
59 return value;
67 const uint16_t* TiffEntry::forceValidType<uint16_t>(TagType type, const uint16_t* value) { argument
69 return value;
77 const int16_t* TiffEntry::forceValidType<int16_t>(TagType type, const int16_t* value) { argument
79 return value;
87 forceValidType(TagType type, const uint32_t* value) argument
97 forceValidType(TagType type, const int32_t* value) argument
107 forceValidType(TagType type, const double* value) argument
117 forceValidType(TagType type, const float* value) argument
[all...]
/frameworks/av/media/libaaudio/src/binding/
H A DIAAudioClient.cpp45 void onStreamChange(aaudio_handle_t handle, int32_t opcode, int32_t value) override {
50 data.writeInt32(value);
65 int32_t value = 0; local
73 data.readInt32(&value);
74 onStreamChange(streamHandle, opcode, value);
75 ALOGD("BnAAudioClient onStreamChange(%x, %d, %d)", streamHandle, opcode, value);
/frameworks/av/media/libeffects/dynamicsproc/dsp/
H A DSHCircularBuffer.h39 inline void write(T value) { argument
41 mBuffer[mWriteIndex++] = value;
51 T value = T(); local
53 value = mBuffer[mReadIndex++];
59 ALOGW("Warning: SHCircularBuffer no data available to read. Default value returned");
61 return value;
/frameworks/av/media/libmedia/
H A DMediaResource.cpp29 MediaResource::MediaResource(Type type, uint64_t value) argument
32 mValue(value) {}
34 MediaResource::MediaResource(Type type, SubType subType, uint64_t value) argument
37 mValue(value) {}
H A DMediaResourcePolicy.cpp29 MediaResourcePolicy::MediaResourcePolicy(String8 type, String8 value) argument
31 mValue(value) {}
H A DMediaScannerClient.cpp42 status_t MediaScannerClient::addStringTag(const char* name, const char* value) argument
44 handleStringTag(name, value);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dprm2bits.cpp91 value = value to be converted to binary of type Word16
92 no_of_bits = number of bits associated with value of type Word16
128 Word16 value, // input : value to be converted to binary
129 Word16 no_of_bits, // input : number of bits associated with value
139 bit = value & MASK;
148 value = shr (value, 1);
179 Word16 value, /* inpu
178 Int2bin( Word16 value, Word16 no_of_bits, Word16 *bitstream ) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dbits.c188 Word16 value, /* input : parameter value */
197 bit = (Word16) (value & 0x0001); /* get lsb */
202 value >>= 1;
187 Parm_serial( Word16 value, Word16 no_of_bits, Word16 ** prms ) argument
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
H A DSoftOMXComponent.h174 static_assert(std::is_same< decltype(a->nSize), OMX_U32>::value, "nSize has wrong type"); member in class:android::OMX_U32
176 static_assert(std::is_same< decltype(a->nVersion), OMX_VERSIONTYPE>::value, member in class:android::OMX_VERSIONTYPE
/frameworks/av/media/mtp/
H A DMtpDataPacket.h47 bool getUInt8(uint8_t& value);
48 inline bool getInt8(int8_t& value) { return getUInt8((uint8_t&)value); } argument
49 bool getUInt16(uint16_t& value);
50 inline bool getInt16(int16_t& value) { return getUInt16((uint16_t&)value); } argument
51 bool getUInt32(uint32_t& value);
52 inline bool getInt32(int32_t& value) { return getUInt32((uint32_t&)value); } argument
53 bool getUInt64(uint64_t& value);
54 getInt64(int64_t& value) argument
56 getInt128(int128_t& value) argument
[all...]
/frameworks/base/cmds/bootanimation/iot/
H A Diotbootanimation_main.cpp50 // This value is optionally provided by the user and will be written to
78 char value[PROPERTY_VALUE_MAX] = {0}; variable
80 property_get("service.bootanim.exit", value, "0");
81 exitRequested = atoi(value);
83 // Poll value at 10hz.
/frameworks/base/cmds/incident_helper/src/parsers/
H A DSystemPropertiesParser.cpp47 string value; // the string value of the property local
197 value = trim(line.substr(index + 4), DEFAULT_WHITESPACE);
198 if (value.empty()) continue;
200 // if the property name couldn't be found in proto definition or the value has mistype,
201 // add to extra properties with its name and value
202 if (!sysProp.insertField(&proto, convertToFieldName(name), value)) {
203 extras.push_back(make_pair(name, value));
/frameworks/base/cmds/statsd/src/config/
H A DConfigKey.cpp44 int64_t value; local
45 value = strtoll(str.c_str(), &endp, 0);
47 value = 0;
49 return value;
/frameworks/base/cmds/statsd/tests/metrics/
H A Dmetrics_test_helper.cpp21 HashableDimensionKey getMockedDimensionKey(int tagId, int key, string value) { argument
24 dimension.addValue(FieldValue(Field(tagId, pos, 0), Value(value)));
29 MetricDimensionKey getMockedMetricDimensionKey(int tagId, int key, string value) { argument
30 return MetricDimensionKey(getMockedDimensionKey(tagId, key, value), DEFAULT_DIMENSION_KEY);
/frameworks/base/core/java/android/animation/
H A DBidirectionalTypeConverter.java20 * is necessary when the value types of in animation are different from the property
21 * type. BidirectionalTypeConverter is needed when only the final value for the
36 * @param value The Object to convert.
37 * @return A value of type T, converted from <code>value</code>.
39 public abstract T convertBack(V value); argument
64 public From convertBack(To value) { argument
65 return mConverter.convert(value);
69 public To convert(From value) { argument
70 return mConverter.convertBack(value);
[all...]
H A DTypeConverter.java21 * is necessary when the value types of in animation are different
51 * Converts a value from one type to another.
52 * @param value The Object to convert.
53 * @return A value of type V, converted from <code>value</code>.
55 public abstract V convert(T value); argument
/frameworks/base/core/java/android/app/usage/
H A DTimeSparseArray.java81 public void put(long key, E value) { argument
84 Slog.wtf(TAG, "Overwriting value " + get(key) + " by " + value);
88 super.put(key, value);
/frameworks/base/core/java/android/os/
H A DHidlSupport.java102 public E value; field in class:HidlSupport.Mutable
105 value = null;
108 public Mutable(E value) { argument
109 this.value = value;
H A DTemperature.java27 /* Temperature value */
37 public Temperature(float value, int type) { argument
38 mValue = value;
43 * Return the temperature value.
44 * @return a temperature value in floating point.

Completed in 604 milliseconds

1234567891011>>