Lines Matching refs:value

142      * Retrieves the styled string value for the attribute at <var>index</var>.
178 * Retrieves the string value for the attribute at <var>index</var>.
216 * Retrieves the string value for the attribute at <var>index</var>, but
217 * only if that string comes from an immediate value in an XML file. That
227 * an immediate string value.
249 * Retrieves the string value for the attribute at <var>index</var> that is
293 * Retrieve the boolean value for the attribute at <var>index</var>.
295 * If the attribute is an integer value, this method will return whether
296 * it is equal to zero. If the attribute is not a boolean or integer value,
304 * @return Boolean value of the attribute, or defValue if the attribute was
334 * Retrieve the integer value for the attribute at <var>index</var>.
343 * @return Integer value of the attribute, or defValue if the attribute was
373 * Retrieve the float value for the attribute at <var>index</var>.
380 * @return Attribute float value, or defValue if the attribute was
415 * Retrieve the color value for the attribute at <var>index</var>. If
427 * @return Attribute color value, or defValue if not defined.
449 final TypedValue value = mValue;
450 if (getValueAt(index, value)) {
452 value, value.resourceId, mTheme);
457 final TypedValue value = mValue;
458 getValueAt(index, value);
460 "Failed to resolve attribute at index " + attrIndex + ": " + value);
463 throw new UnsupportedOperationException("Can't convert value at index " + attrIndex
469 * The value may be either a {@link android.content.res.ColorStateList} which can wrap a simple
470 * color value or a {@link android.content.res.GradientColor}
490 final TypedValue value = mValue;
491 if (getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, value)) {
492 if (value.type == TypedValue.TYPE_ATTRIBUTE) {
494 "Failed to resolve attribute at index " + index + ": " + value);
496 return mResources.loadComplexColor(value, value.resourceId, mTheme);
503 * The value may be either a single solid color or a reference to
525 final TypedValue value = mValue;
526 if (getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, value)) {
527 if (value.type == TypedValue.TYPE_ATTRIBUTE) {
529 "Failed to resolve attribute at index " + index + ": " + value);
531 return mResources.loadColorStateList(value, value.resourceId, mTheme);
537 * Retrieve the integer value for the attribute at <var>index</var>.
546 * @return Attribute integer value, or defValue if not defined.
567 final TypedValue value = mValue;
568 getValueAt(index, value);
570 "Failed to resolve attribute at index " + attrIndex + ": " + value);
573 throw new UnsupportedOperationException("Can't convert value at index " + attrIndex
590 * @return Attribute dimension value multiplied by the appropriate
615 final TypedValue value = mValue;
616 getValueAt(index, value);
618 "Failed to resolve attribute at index " + attrIndex + ": " + value);
621 throw new UnsupportedOperationException("Can't convert value at index " + attrIndex
628 * {@link #getDimension}, except the returned value is converted to
630 * truncating the base value to an integer.
639 * @return Attribute dimension value multiplied by the appropriate
664 final TypedValue value = mValue;
665 getValueAt(index, value);
667 "Failed to resolve attribute at index " + attrIndex + ": " + value);
670 throw new UnsupportedOperationException("Can't convert value at index " + attrIndex
677 * {@link #getDimension}, except the returned value is converted to
679 * rounding the base value, and ensuring that a non-zero base value
689 * @return Attribute dimension value multiplied by the appropriate
714 final TypedValue value = mValue;
715 getValueAt(index, value);
717 "Failed to resolve attribute at index " + attrIndex + ": " + value);
720 throw new UnsupportedOperationException("Can't convert value at index " + attrIndex
736 * @return Attribute dimension value multiplied by the appropriate
759 final TypedValue value = mValue;
760 getValueAt(index, value);
762 "Failed to resolve attribute at index " + attrIndex + ": " + value);
776 * @param defValue The default value to return if this attribute is not
779 * @return Attribute dimension value multiplied by the appropriate
806 * @param base The base value of this fraction. In other words, a
807 * standard fraction is multiplied by this value.
808 * @param pbase The parent base value of this fraction. In other
810 * value.
814 * @return Attribute fractional value multiplied by the appropriate
815 * base value, or defValue if not defined.
836 final TypedValue value = mValue;
837 getValueAt(index, value);
839 "Failed to resolve attribute at index " + attrIndex + ": " + value);
842 throw new UnsupportedOperationException("Can't convert value at index " + attrIndex
851 * final resource value that was found, <em>not</em> necessarily the
922 final TypedValue value = mValue;
923 if (getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, value)) {
924 if (value.type == TypedValue.TYPE_ATTRIBUTE) {
926 "Failed to resolve attribute at index " + index + ": " + value);
928 return mResources.loadDrawable(value, value.resourceId, mTheme);
953 final TypedValue value = mValue;
954 if (getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, value)) {
955 return mResources.getTextArray(value.resourceId);
967 * @return {@code true} if the value was retrieved, false otherwise.
1003 * @return True if the attribute has a value, false otherwise.
1024 * @return True if the attribute has a value or is empty, false otherwise.
1056 final TypedValue value = mValue;
1057 if (getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, value)) {
1058 return value;
1102 * getters will return the default value without crashing.