/frameworks/rs/ |
H A D | rsScriptC.cpp | 375 const char * value = mHal.info.exportedPragmaValueList[i]; local 378 if (!strcmp(value, "1")) { 381 ALOGE("Invalid version pragma value: %s\n", value); 387 if (!strcmp(value, "default")) { 390 if (!strcmp(value, "parent")) { 394 ALOGE("Unrecognized value %s passed to stateVertex", value); 399 if (!strcmp(value, "default")) { 402 if (!strcmp(value, "paren [all...] |
/frameworks/rs/server/ |
H A D | TypeHelpers.h | 33 template <typename T> struct trait_trivial_ctor { enum { value = false }; }; enumerator in enum:android::trait_trivial_ctor::__anon1621 34 template <typename T> struct trait_trivial_dtor { enum { value = false }; }; enumerator in enum:android::trait_trivial_dtor::__anon1622 35 template <typename T> struct trait_trivial_copy { enum { value = false }; }; enumerator in enum:android::trait_trivial_copy::__anon1623 36 template <typename T> struct trait_trivial_move { enum { value = false }; }; enumerator in enum:android::trait_trivial_move::__anon1624 37 template <typename T> struct trait_pointer { enum { value = false }; }; enumerator in enum:android::trait_pointer::__anon1625 38 template <typename T> struct trait_pointer<T*> { enum { value = true }; }; enumerator in enum:android::trait_pointer::__anon1626 44 is_pointer = trait_pointer<TYPE>::value, 46 has_trivial_ctor = is_pointer || trait_trivial_ctor<TYPE>::value, 48 has_trivial_dtor = is_pointer || trait_trivial_dtor<TYPE>::value, 50 has_trivial_copy = is_pointer || trait_trivial_copy<TYPE>::value, 232 VALUE value; member in struct:android::key_value_pair_t 250 { enum { value = aggregate_traits<K,V>::has_trivial_ctor }; }; enumerator in enum:android::trait_trivial_ctor::__anon1629 253 { enum { value = aggregate_traits<K,V>::has_trivial_dtor }; }; enumerator in enum:android::trait_trivial_dtor::__anon1630 256 { enum { value = aggregate_traits<K,V>::has_trivial_copy }; }; enumerator in enum:android::trait_trivial_copy::__anon1631 259 { enum { value = aggregate_traits<K,V>::has_trivial_move }; }; enumerator in enum:android::trait_trivial_move::__anon1632 294 hash_type(T* const & value) argument [all...] |
/frameworks/support/design/base/android/support/design/widget/ |
H A D | ShadowDrawableWrapper.java | 56 // updated value with inset 58 // actual value set by developer 61 // multiplied value to account for shadow offset 63 // actual value set by developer 75 * If shadow size is set to a value above max shadow, we print a warning 97 * Casts the value to an even integer. 99 private static int toEven(float value) { argument 100 int i = Math.round(value);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 233 * Set the value indicating the current scroll value. This decides how much of the 236 * A value of {@code 0.0} indicates that the layout is fully expanded. 237 * A value of {@code 1.0} indicates that the layout is fully collapsed. 537 * Returns true if {@code value} is 'close' to it's closest decimal value. Close is currently 540 private static boolean isClose(float value, float targetValue) { argument 541 return Math.abs(value - targetValue) < 0.001f;
|
H A D | FloatingActionButton.java | 300 static PorterDuff.Mode parseTintMode(int value, PorterDuff.Mode defaultMode) { argument 301 switch (value) {
|
H A D | SwipeDismissBehavior.java | 354 private static float clamp(float min, float value, float max) { argument 355 return Math.min(Math.max(min, value), max); 358 private static int clamp(int min, int value, int max) { argument 359 return Math.min(Math.max(min, value), max); 373 * The fraction that {@code value} is between {@code startValue} and {@code endValue}. 375 static float fraction(float startValue, float endValue, float value) { argument 376 return (value - startValue) / (endValue - startValue);
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
H A D | MultiSelectListPreference.java | 91 * value was persisted, since we may not necessarily commit if there 118 * from the {@link android.preference.PreferenceManager}, and get the value. 120 * @param defaultReturnValue The default value to return if either the 123 * @return The value from the SharedPreferences or the default return 124 * value. 170 * The array to find the value to save for a preference when an entry from 198 * Sets the value of the key. This should contain entries in 211 * Retrieves the current value of the key. 218 * Returns the index of the given value (in the entry values array). 220 * @param value Th 223 findIndexOfValue(String value) argument [all...] |
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
H A D | ViewCompatHC.java | 92 public static void setTranslationX(View view, float value) { argument 93 view.setTranslationX(value); 96 public static void setTranslationY(View view, float value) { argument 97 view.setTranslationY(value); 100 public static void setAlpha(View view, float value) { argument 101 view.setAlpha(value); 104 public static void setX(View view, float value) { argument 105 view.setX(value); 108 public static void setY(View view, float value) { argument 109 view.setY(value); 112 setRotation(View view, float value) argument 116 setRotationX(View view, float value) argument 120 setRotationY(View view, float value) argument 124 setScaleX(View view, float value) argument 128 setScaleY(View view, float value) argument 132 setPivotX(View view, float value) argument 136 setPivotY(View view, float value) argument [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | SimpleArrayMap.java | 92 // Key not found -- return negative value indicating where a 130 // Key not found -- return negative value indicating where a 286 int indexOfValue(Object value) { argument 289 if (value == null) { 297 if (value.equals(array[i])) { 306 * Check whether a value exists in the array. This requires a linear search 309 * @param value The value to search for. 310 * @return Returns true if the value exists, else false. 312 public boolean containsValue(Object value) { argument 351 setValueAt(int index, V value) argument 373 put(K key, V value) argument [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SimpleCursorAdapter.java | 103 * is invoked. If the returned value is true, binding has occured. If the 104 * returned value is false and the view to bind is a TextView, 105 * {@link #setViewText(TextView, String)} is invoked. If the returned value is 183 * By default, the value will be treated as an image resource. If the 184 * value cannot be used as an image resource, the value is used as an 191 * @param value the value retrieved from the cursor 193 public void setViewImage(ImageView v, String value) { argument 195 v.setImageResource(Integer.parseInt(value)); [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | DefaultGenerator.java | 126 // ...but we do have a dark vibrant, generate the value by modifying the luma 136 // ...but we do have a vibrant, generate the value by modifying the luma 145 * Find the {@link Palette.Swatch} with the highest population value and return the population. 167 float value = createComparisonValue(sat, targetSaturation, luma, targetLuma, 169 if (max == null || value > maxValue) { 171 maxValue = value; 217 * Returns a value in the range 0-1. 1 is returned when {@code value} equals the 218 * {@code targetValue} and then decreases as the absolute difference between {@code value} and 221 * @param value th 224 invertDiff(float value, float targetValue) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | ListPreference.java | 33 * This preference will store a string into the SharedPreferences. This string will be the value 116 * The array to find the value to save for a preference when an entry from 144 * Sets the value of the key. This should be one of the entries in 147 * @param value The value to set for the key. 149 public void setValue(String value) { argument 151 final boolean changed = !TextUtils.equals(mValue, value); 153 mValue = value; 155 persistString(value); 166 * value wil 236 findIndexOfValue(String value) argument 288 String value; field in class:ListPreference.SavedState [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | ChildHelper.java | 428 void insert(int index, boolean value) { argument 431 next.insert(index - BITS_PER_WORD, value); 438 if (value) { 456 final boolean value = (mData & mask) != 0; 469 return value;
|
H A D | PositionMap.java | 177 * 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/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Type.java | 33 * A nonzero value in the Y or Z dimensions indicates that the dimension is 88 * Return the value of the X dimension. 97 * Return the value of the Y dimension or 0 for a 1D allocation. 106 * Return the value of the Z dimension or 0 for a 1D or 2D allocation. 306 * @param value 308 public Builder setX(int value) { argument 309 if(value < 1) { 312 mDimX = value; 316 public Builder setY(int value) { argument 317 if(value < 324 setZ(int value) argument 332 setMipmaps(boolean value) argument 337 setFaces(boolean value) argument [all...] |
/frameworks/wilhelm/src/android/ |
H A D | MediaPlayer_to_android.cpp | 732 int value; local 734 err = (*nativeWindow->query)(nativeWindow, NATIVE_WINDOW_CONCRETE_TYPE, &value); 740 switch (value) { 754 nativeWindow, value);
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 169 * @return A Boolean value indicating whether key derivation was successful. 175 unsigned char value[KEY_SIZE]; member in struct:FwdLockFile_DeriveKeys_Data 190 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 191 memset(pData->value, 0, KEY_SIZE); 192 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 197 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key. 198 ++pData->value[0]; 199 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 345 // The return value should be the file position that lseek64() would have returned
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | DecTestBench.c | 708 * the total value will be invalid */ 757 void H264SwDecMemset(void *ptr, i32 value, u32 count) argument 759 memset(ptr, value, count);
|
H A D | h264bsd_cavlc.c | 50 * of certain decoded symbol value and the length of the corresponding variable 52 * 4 bits symbol value (bits [4,7]) along with four bits to represent length 74 * If there is a 0x0000 value, it means that there is not corresponding VLC 324 #define BUFFER_INIT(value, bits) \ 327 value = h264bsdShowBits32(pStrmData); \ 332 #define BUFFER_SHOW(value, bits, outVal, numBits) \ 338 value = h264bsdShowBits32(pStrmData); \ 341 (outVal) = value >> (32 - (numBits)); \ 345 #define BUFFER_FLUSH(value, bits, numBits) \ 347 value << 400 u32 value; local 543 u32 value = 0x0; local 665 u32 value = 0x0; local [all...] |
H A D | h264bsd_macroblock_layer.c | 140 u32 tmp, i, value; local 155 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 159 if ((value + 6) > 31 || tmp != HANTRO_OK) 161 pMbLayer->mbType = (mbType_e)(value + 6); 165 if ((value + 1) > 31 || tmp != HANTRO_OK) 167 pMbLayer->mbType = (mbType_e)(value + 1); 184 value = h264bsdGetBits(pStrmData, 8); 185 if (value == END_OF_STREAM) 187 *level++ = (i32)value; 209 tmp = h264bsdDecodeExpGolombMapped(pStrmData, &value, 359 u32 tmp, i, j, value; local 447 u32 tmp, i, j, value; local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4AudioAssembler.cpp | 35 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 36 value->clear(); 51 value->setTo(&s[keyLen + 1], len - keyLen - 1); 75 unsigned value; local 77 value = c - '0'; 79 value = c - 'a' + 10; 81 value = c - 'A' + 10; 86 accum = (accum << 4) | value;
|
H A D | APacketSource.cpp | 44 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 45 value->clear(); 60 value->setTo(&s[keyLen + 1], len - keyLen - 1); 84 unsigned value; local 86 value = c - '0'; 88 value = c - 'a' + 10; 90 value = c - 'A' + 10; 95 accum = (accum << 4) | value;
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 135 WebmUnsigned::WebmUnsigned(uint64_t id, uint64_t value) argument 136 : WebmElement(id, sizeOf(value)), mValue(value) { 145 WebmFloat::WebmFloat(uint64_t id, double value) argument 146 : WebmElement(id, sizeof(double)), mValue(value) { 149 WebmFloat::WebmFloat(uint64_t id, float value) argument 150 : WebmElement(id, sizeof(float)), mValue(value) {
|
/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | ClientManager.h | 37 * The ClientDescriptor class is a container for a given key/value pair identifying a shared 47 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, 49 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys, 60 * Return the value for this descriptor. 113 ClientDescriptor<KEY, VALUE>::ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, argument 115 mValue{value}, mCost{cost}, mConflicting{conflictingKeys}, mPriority{priority}, 119 ClientDescriptor<KEY, VALUE>::ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, argument 121 mKey{std::forward<KEY>(key)}, mValue{std::forward<VALUE>(value)}, mCost{cost}, 249 void remove(const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value); 621 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value) { 620 remove( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | SharedPreferencesImpl.java | 290 // Return value from EditorImpl#commitToMemory() 309 public Editor putString(String key, @Nullable String value) { argument 311 mModified.put(key, value); 322 public Editor putInt(String key, int value) { argument 324 mModified.put(key, value); 328 public Editor putLong(String key, long value) { argument 330 mModified.put(key, value); 334 public Editor putFloat(String key, float value) { argument 336 mModified.put(key, value); 340 public Editor putBoolean(String key, boolean value) { argument [all...] |