/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 26 import android.util.TypedValue; 75 /*package*/ TypedValue mValue = new TypedValue(); 155 if (type == TypedValue.TYPE_NULL) { in getText() 157 } else if (type == TypedValue.TYPE_STRING) { in getText() 161 final TypedValue v = mValue; in getText() 192 if (type == TypedValue.TYPE_NULL) { in getString() 194 } else if (type == TypedValue.TYPE_STRING) { in getString() 198 final TypedValue v = mValue; in getString() 231 if (type == TypedValue.TYPE_STRING) { in getNonResourceString() 265 if (type == TypedValue.TYPE_NULL) { in getNonConfigurationString() [all …]
|
D | Resources.java | 62 import android.util.TypedValue; 146 private TypedValue mTmpValue = new TypedValue(); 616 TypedValue value = mTmpValue; in getDimension() 618 mTmpValue = value = new TypedValue(); in getDimension() 621 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension() 622 return TypedValue.complexToDimension(value.data, mMetrics); in getDimension() 651 TypedValue value = mTmpValue; in getDimensionPixelOffset() 653 mTmpValue = value = new TypedValue(); in getDimensionPixelOffset() 656 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset() 657 return TypedValue.complexToDimensionPixelOffset( in getDimensionPixelOffset() [all …]
|
D | AssetManager.java | 22 import android.util.TypedValue; 68 private final TypedValue mValue = new TypedValue(); 150 TypedValue tmpValue = mValue; in getResourceText() 153 if (tmpValue.type == TypedValue.TYPE_STRING) { in getResourceText() 168 TypedValue tmpValue = mValue; in getResourceBagText() 171 if (tmpValue.type == TypedValue.TYPE_STRING) { in getResourceBagText() 193 TypedValue outValue, in getResourceValue() 198 if (outValue.type != TypedValue.TYPE_STRING) { in getResourceValue() 228 TypedValue outValue, boolean resolveRefs) { in getThemeValue() 231 if (outValue.type != TypedValue.TYPE_STRING) { in getThemeValue() [all …]
|
D | XmlBlock.java | 19 import android.util.TypedValue; 207 if (t == TypedValue.TYPE_NULL) { in getAttributeValue() 212 return TypedValue.coerceToString(t, v); in getAttributeValue() 368 if (t == TypedValue.TYPE_STRING) { in getAttributeListValue() 379 if (t >= TypedValue.TYPE_FIRST_INT && in getAttributeBooleanValue() 380 t <= TypedValue.TYPE_LAST_INT) { in getAttributeBooleanValue() 389 if (t == TypedValue.TYPE_REFERENCE) { in getAttributeResourceValue() 398 if (t >= TypedValue.TYPE_FIRST_INT && in getAttributeIntValue() 399 t <= TypedValue.TYPE_LAST_INT) { in getAttributeIntValue() 408 if (t >= TypedValue.TYPE_FIRST_INT && in getAttributeUnsignedIntValue() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ContentFrameLayout.java | 24 import android.util.TypedValue; 36 private TypedValue mMinWidthMajor; 37 private TypedValue mMinWidthMinor; 38 private TypedValue mFixedWidthMajor; 39 private TypedValue mFixedWidthMinor; 40 private TypedValue mFixedHeightMajor; 41 private TypedValue mFixedHeightMinor; 88 final TypedValue tvw = isPortrait ? mFixedWidthMinor : mFixedWidthMajor; in onMeasure() 89 if (tvw != null && tvw.type != TypedValue.TYPE_NULL) { in onMeasure() 91 if (tvw.type == TypedValue.TYPE_DIMENSION) { in onMeasure() [all …]
|
D | ThemeUtils.java | 24 import android.util.TypedValue; 31 private static final ThreadLocal<TypedValue> TL_TYPED_VALUE = new ThreadLocal<>(); 93 final TypedValue tv = getTypedValue(); in getDisabledThemeAttrColor() 102 private static TypedValue getTypedValue() { in getTypedValue() 103 TypedValue typedValue = TL_TYPED_VALUE.get(); in getTypedValue() 105 typedValue = new TypedValue(); in getTypedValue()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelper.java | 46 import android.util.TypedValue; 64 private final static TypedValue mValue = new TypedValue(); 368 new UnitEntry("px", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PX, 1.0f), 369 new UnitEntry("dip", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f), 370 new UnitEntry("dp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f), 371 new UnitEntry("sp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_SP, 1.0f), 372 new UnitEntry("pt", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PT, 1.0f), 373 new UnitEntry("in", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_IN, 1.0f), 374 new UnitEntry("mm", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_MM, 1.0f), 375 new UnitEntry("%", TypedValue.TYPE_FRACTION, TypedValue.COMPLEX_UNIT_FRACTION, 1.0f/100), [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 20 import android.util.TypedValue; 73 TypedValue staticValue = new TypedValue(); in testVoidConfigChange() 77 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testVoidConfigChange() 93 TypedValue changingValue = new TypedValue(); in testEffectiveConfigChange() 97 float changingDim = TypedValue.complexToDimension(changingValue.data, in testEffectiveConfigChange() 115 TypedValue staticValue = new TypedValue(); in testConfigChangeMultipleResources() 116 TypedValue changingValue = new TypedValue(); in testConfigChangeMultipleResources() 120 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testConfigChangeMultipleResources() 121 float changingDim = TypedValue.complexToDimension(changingValue.data, in testConfigChangeMultipleResources() 146 TypedValue[] staticValues = new TypedValue[]{new TypedValue(), new TypedValue()}; in testConfigChangeMultipleThemes() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | ScaleAnimation.java | 23 import android.util.TypedValue; 38 private int mFromXType = TypedValue.TYPE_NULL; 39 private int mToXType = TypedValue.TYPE_NULL; 40 private int mFromYType = TypedValue.TYPE_NULL; 41 private int mToYType = TypedValue.TYPE_NULL; 70 TypedValue tv = a.peekValue( in ScaleAnimation() 74 if (tv.type == TypedValue.TYPE_FLOAT) { in ScaleAnimation() 86 if (tv.type == TypedValue.TYPE_FLOAT) { in ScaleAnimation() 99 if (tv.type == TypedValue.TYPE_FLOAT) { in ScaleAnimation() 111 if (tv.type == TypedValue.TYPE_FLOAT) { in ScaleAnimation() [all …]
|
D | Animation.java | 27 import android.util.TypedValue; 1100 static Description parseValue(TypedValue value) { in parseValue() 1106 if (value.type == TypedValue.TYPE_FRACTION) { in parseValue() 1107 d.type = (value.data & TypedValue.COMPLEX_UNIT_MASK) == in parseValue() 1108 TypedValue.COMPLEX_UNIT_FRACTION_PARENT ? in parseValue() 1110 d.value = TypedValue.complexToFloat(value.data); in parseValue() 1112 } else if (value.type == TypedValue.TYPE_FLOAT) { in parseValue() 1116 } else if (value.type >= TypedValue.TYPE_FIRST_INT && in parseValue() 1117 value.type <= TypedValue.TYPE_LAST_INT) { in parseValue()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 22 import android.util.TypedValue; 36 TypedValue value = new TypedValue(); in getThemeResource() 46 TypedValue value = new TypedValue(); in isLightTheme()
|
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
D | ThemePreviewLayout.java | 22 import android.util.TypedValue; 77 mMaxColumnWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ThemePreviewLayout() 80 mMinColumnWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ThemePreviewLayout() 83 mItemHorizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ThemePreviewLayout() 86 mItemVerticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ThemePreviewLayout()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 28 import android.util.TypedValue; 85 TypedValue.COMPLEX_UNIT_DIP, 20, dm); in Watermark() 96 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm); in Watermark() 98 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm); in Watermark() 100 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm); in Watermark() 102 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm); in Watermark() 104 TypedValue.COMPLEX_UNIT_PX, 7, dm); in Watermark() 106 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark() 108 TypedValue.COMPLEX_UNIT_PX, 0, dm); in Watermark()
|
/frameworks/base/core/java/android/util/ |
D | TypedValue.java | 25 public class TypedValue { class 204 1.0f / (1<<TypedValue.COMPLEX_MANTISSA_SHIFT); 222 return (complex&(TypedValue.COMPLEX_MANTISSA_MASK in complexToFloat() 223 <<TypedValue.COMPLEX_MANTISSA_SHIFT)) in complexToFloat() 224 * RADIX_MULTS[(complex>>TypedValue.COMPLEX_RADIX_SHIFT) in complexToFloat() 225 & TypedValue.COMPLEX_RADIX_MASK]; in complexToFloat() 326 return COMPLEX_UNIT_MASK & (data>>TypedValue.COMPLEX_UNIT_SHIFT); in getComplexUnit() 488 public void setTo(TypedValue other) in setTo()
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | BridgeTypedArray.java | 39 import android.util.TypedValue; 48 import static android.util.TypedValue.TYPE_ATTRIBUTE; 49 import static android.util.TypedValue.TYPE_DIMENSION; 50 import static android.util.TypedValue.TYPE_FLOAT; 51 import static android.util.TypedValue.TYPE_INT_BOOLEAN; 52 import static android.util.TypedValue.TYPE_INT_COLOR_ARGB4; 53 import static android.util.TypedValue.TYPE_INT_COLOR_ARGB8; 54 import static android.util.TypedValue.TYPE_INT_COLOR_RGB4; 55 import static android.util.TypedValue.TYPE_INT_COLOR_RGB8; 56 import static android.util.TypedValue.TYPE_INT_DEC; [all …]
|
D | TypedArray_Delegate.java | 21 import android.util.TypedValue; 26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt()
|
D | BridgeResources.java | 42 import android.util.TypedValue; 59 private TypedValue mTmpValue = new TypedValue(); 496 mTmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimension() 523 mTmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset() 524 return TypedValue.complexToDimensionPixelOffset(mTmpValue.data, in getDimensionPixelOffset() 551 mTmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize() 552 return TypedValue.complexToDimensionPixelSize(mTmpValue.data, in getDimensionPixelSize() 662 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() 676 outValue.type = TypedValue.TYPE_STRING; in getValue() 687 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorInflater.java | 32 import android.util.TypedValue; 76 private static final TypedValue sTmpTypedValue = new TypedValue(); 303 TypedValue tvFrom = styledAttributes.peekValue(valueFromId); in getPVH() 306 TypedValue tvTo = styledAttributes.peekValue(valueToId); in getPVH() 362 if (fromType == TypedValue.TYPE_DIMENSION) { in getPVH() 368 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH() 379 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH() 390 if (fromType == TypedValue.TYPE_DIMENSION) { in getPVH() 398 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH() 411 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TimePickerDialog.java | 23 import android.util.TypedValue; 86 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() 116 final TypedValue outValue = new TypedValue(); in TimePickerDialog()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 24 import android.util.TypedValue; 424 public static Bitmap decodeResourceStream(Resources res, TypedValue value, in decodeResourceStream() 433 if (density == TypedValue.DENSITY_DEFAULT) { in decodeResourceStream() 435 } else if (density != TypedValue.DENSITY_NONE) { in decodeResourceStream() 464 final TypedValue value = new TypedValue(); in decodeResource()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | LaunchWarningWindow.java | 23 import android.util.TypedValue; 41 TypedValue out = new TypedValue(); in LaunchWarningWindow()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | FontSizeUtils.java | 19 import android.util.TypedValue; 36 v.setTextSize(TypedValue.COMPLEX_UNIT_PX, in updateFontSize()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ResizingTextView.java | 20 import android.util.TypedValue; 207 setTextSize(TypedValue.COMPLEX_UNIT_PX, mDefaultTextSize); in onMeasure() 230 setTextSize(TypedValue.COMPLEX_UNIT_PX, mResizedTextSize); in onMeasure() 249 setTextSize(TypedValue.COMPLEX_UNIT_PX, mDefaultTextSize); in onMeasure()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedRotateDrawable.java | 27 import android.util.TypedValue; 156 final TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotX); in updateStateFromTypedArray() 157 state.mPivotXRel = tv.type == TypedValue.TYPE_FRACTION; in updateStateFromTypedArray() 162 final TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotY); in updateStateFromTypedArray() 163 state.mPivotYRel = tv.type == TypedValue.TYPE_FRACTION; in updateStateFromTypedArray()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AppCompatDialog.java | 26 import android.util.TypedValue; 150 TypedValue outValue = new TypedValue(); in getThemeResId()
|