/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | AbstractCache.java | 37 public boolean put(K key, V value) { argument 53 cacheEntry.value = value; 76 return cacheEntry.value; 93 return v != null ? v.value : null; 110 V value; field in class:AbstractCache.CacheEntry
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | ContainerHelpers.java | 45 static int binarySearch(int[] array, int size, int value) { argument 53 if (midVal < value) { 55 } else if (midVal > value) { 58 return mid; // value found 61 return ~lo; // value not present 64 static int binarySearch(long[] array, int size, long value) { argument 72 if (midVal < value) { 74 } else if (midVal > value) { 77 return mid; // value found 80 return ~lo; // value no [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | DrawableUtils.java | 181 static PorterDuff.Mode parseTintMode(int value, PorterDuff.Mode defaultMode) { argument 182 switch (value) {
|
/frameworks/av/drm/common/ |
H A D | DrmInfo.cpp | 44 status_t DrmInfo::put(const String8& key, const String8& value) { argument 45 mAttributes.add(key, value); 107 String8& value = mDrmInfo->mAttributes.editValueAt(mIndex); local 109 return value;
|
H A D | DrmSupportInfo.cpp | 132 String8& value = mDrmSupportInfo->mFileSuffixVector.editItemAt(mIndex); local 134 return value; 156 String8& value = mDrmSupportInfo->mMimeTypeVector.editItemAt(mIndex); local 158 return value;
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
H A D | SessionMap.h | 42 * Adds a new value in the session map table. It expects memory to be allocated already 46 * @param value - session object to add 48 * @return boolean result of adding value. returns false if key is already exist. 50 bool addValue(int key, TValue value) { argument 53 map.add(key, value); 84 * @param index - index of the value required 89 TValue value = NULL; local 93 value = map.valueAt(index); 95 return value; 101 * @param key - key of the value t 142 deleteValue(TValue value) argument 179 TValue value = NULL; local [all...] |
/frameworks/av/include/drm/ |
H A D | DrmConstraints.h | 120 const char* value = this->getAsByteArray(&key); local 121 if (NULL != value) { 122 delete[] value; 123 value = NULL; 137 * Adds constraint information as <key, value> pair to this instance 140 * @param[in] value Value to add 143 status_t put(const String8* key, const char* value); 146 * Retrieves the value of given key 148 * @param key Key whose value to be retrieved 149 * @return The value [all...] |
/frameworks/av/include/media/ |
H A D | Modulo.h | 33 // type is converted to its base non-Modulo type through the value() function. 46 // (2) If the destination type is unsigned, the resulting value is the least unsigned 51 // (3) If the destination type is signed, the value is unchanged if it can be represented 52 // in the destination type (and bit-field width); otherwise, the value is 77 // 2^n where n is the number of bits in the value representation of that particular 93 Modulo(const T &value) { mValue = value; } argument 94 const T & value() const { return mValue; } // not assignable function in class:android::Modulo 97 void getValue(T *value) const { *value [all...] |
H A D | SingleStateQueue.h | 64 // push new value onto state queue, overwriting previous value; 66 int32_t push(const T& value) argument 72 shared->mValue = value; 80 // returns the status of the last state push. This may be a stale value. 116 // return true if value has changed 117 bool poll(T& value) argument 136 value = temp;
|
/frameworks/av/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 98 const char *value; local 99 if ((value = mRetriever->extractMetadata( 101 status = client.setMimeType(value); 131 const char *value; local 132 if ((value = mRetriever->extractMetadata(kKeyMap[i].key)) != NULL) { 133 status = client.addStringTag(kKeyMap[i].tag, value);
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
H A D | DrcPresModeWrap.cpp | 127 CDrcPresModeWrapper::setParam(const DRC_PRES_MODE_WRAP_PARAM param, const int value) argument 131 mDesTarget = value; 134 mDesAttFactor = value; 137 mDesBoostFactor = value; 140 mDesHeavy = value; 143 mEncoderTarget = value;
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_util.c | 66 right-aligned, last bit of the code word in the lsb of the value. 69 value code word 80 u32 h264bsdCountLeadingZeros(u32 value, u32 length) argument 92 while (mask && !(value & mask))
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | base64.cpp | 57 unsigned value; local 59 value = c - 'A'; 61 value = 26 + c - 'a'; 63 value = 52 + c - '0'; 65 value = 62; 67 value = 63; 75 value = 0; 78 accum = (accum << 6) | value;
|
/frameworks/av/services/audioflinger/ |
H A D | AudioMixerOps.h | 22 /* Behavior of is_same<>::value is true if the types are identical, 28 static const bool value = false; member in struct:android::is_same 34 static const bool value = true; member in struct:android::is_same 60 TO MixMul(TI value, TV volume); 63 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) { argument 64 return value * volume; 68 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) { argument 69 return (value >> 12) * volume; 73 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) { argument 74 return value * (volum 78 MixMul(int32_t value, int32_t volume) argument 83 MixMul(float value, int16_t volume) argument 89 MixMul(float value, int32_t volume) argument 95 MixMul(float value, int16_t volume) argument 100 MixMul(float value, int32_t volume) argument 105 MixMul(int16_t value, int16_t volume) argument 111 MixMul(int16_t value, int32_t volume) argument 117 MixMul(int16_t value, int16_t volume) argument 122 MixMul(int32_t value, int16_t volume) argument 127 MixMul(int16_t value, int32_t volume) argument 132 MixMul(int32_t value, int32_t volume) argument 141 MixMul(float value, float volume) argument 146 MixMul(int16_t value, float volume) argument 152 MixMul(int32_t value, float volume) argument 158 MixMul(int16_t value, float volume) argument 165 MixMul(int16_t value, float volume) argument 171 MixMul(float value, float volume) argument 181 MixAccum(TO *auxaccum, TI value) argument 190 MixAccum(float *auxaccum, int16_t value) argument 196 MixAccum(float *auxaccum, int32_t value) argument 202 MixAccum(int32_t *auxaccum, int16_t value) argument 207 MixAccum(int32_t *auxaccum, float value) argument 216 MixMulAux(TI value, TV volume, TA *auxaccum) argument [all...] |
/frameworks/av/services/audiopolicy/utilities/convert/ |
H A D | convert.h | 35 * String conversion to T reads the value of the type T in the given string. 36 * The function does not allow to have white spaces around the value to parse 42 * Numeric conversion to string formats the source value to decimal space. 46 * @tparam srcType source type, default value is string type 49 * @param[out] result Converted value if success, undefined on failure. 146 static inline bool toString(const T &value, std::string &str) argument 155 oss << value; local 254 * based on it but makes furthers checks on the returned value. 284 * based on it but makes furthers checks on the returned value. 318 * requirements. Indeed, parsing "true" will correctly parse the value, bu [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAvrcpPlayerSettings.java | 141 * @param settings a ORed value of SETTINGS_* defined above. 150 * @return int ORed value of supported settings. 157 * Add a setting value. 161 * @param value value for the setting. 164 public void addSettingValue(int setting, int value) { argument 169 mSettingsValue.put(setting, value); 173 * Get a setting value. 177 * @return value value fo [all...] |
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...] |
/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);
|
H A D | MarshalQueryableParcelable.java | 72 public void marshal(T value, ByteBuffer buffer) { argument 74 Log.v(TAG, "marshal " + value); 81 value.writeToParcel(parcel, /*flags*/0); 85 "Parcelable " + value + " must not have file descriptors"); 95 throw new AssertionError("No data marshaled for " + value); 134 T value = mCreator.createFromParcel(parcel); 138 throw new AssertionError("No data marshaled for " + value); 147 Log.v(TAG, "unmarshal, value is " + value); 150 return mClass.cast(value); 162 calculateMarshalSize(T value) argument [all...] |
H A D | MarshalQueryablePrimitive.java | 69 public int calculateMarshalSize(T value) { argument 74 public void marshal(T value, ByteBuffer buffer) { argument 75 if (value instanceof Integer) { 77 final int val = (Integer) value; 79 } else if (value instanceof Float) { 81 final float val = (Float) value; 83 } else if (value instanceof Long) { 85 final long val = (Long) value; 87 } else if (value instanceof Rational) { 89 marshalPrimitive((Rational) value, buffe 104 marshalPrimitive(int value, ByteBuffer buffer) argument 108 marshalPrimitive(float value, ByteBuffer buffer) argument 112 marshalPrimitive(double value, ByteBuffer buffer) argument 116 marshalPrimitive(long value, ByteBuffer buffer) argument 120 marshalPrimitive(Rational value, ByteBuffer buffer) argument 125 marshalPrimitive(byte value, ByteBuffer buffer) argument [all...] |
H A D | MarshalQueryableRange.java | 76 public void marshal(Range<T> value, ByteBuffer buffer) { argument 77 mNestedTypeMarshaler.marshal(value.getLower(), buffer); 78 mNestedTypeMarshaler.marshal(value.getUpper(), buffer); 111 public int calculateMarshalSize(Range<T> value) { argument 117 int lowerSize = mNestedTypeMarshaler.calculateMarshalSize(value.getLower()); 118 int upperSize = mNestedTypeMarshaler.calculateMarshalSize(value.getUpper());
|
H A D | MarshalQueryableString.java | 46 public void marshal(String value, ByteBuffer buffer) { argument 47 byte[] arr = value.getBytes(UTF8_CHARSET); 54 public int calculateMarshalSize(String value) { argument 55 byte[] arr = value.getBytes(UTF8_CHARSET);
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 112 * Create a {@link Rational} value by approximating the float value as a rational. 118 * @param value a floating point value 121 public static Rational createRational(float value) { argument 122 if (Float.isNaN(value)) { 124 } else if (value == Float.POSITIVE_INFINITY) { 126 } else if (value == Float.NEGATIVE_INFINITY) { 128 } else if (value == 0.0f) { 132 // normal finite value [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | AudioPlaybackQueueItem.java | 112 private static final float clip(float value, float min, float max) { argument 113 return value < min ? min : (value < max ? value : max);
|
/frameworks/base/core/java/android/text/ |
H A D | PackedObjectVector.java | 51 Object value = mValues[row * mColumns + column]; 53 return (E) value; 57 setValue(int row, int column, E value) argument 62 mValues[row * mColumns + column] = value;
|