Home
last modified time | relevance | path

Searched refs:TypedValue (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
DTypedArray.java23 import android.util.TypedValue;
45 /*package*/ TypedValue mValue = new TypedValue();
93 if (type == TypedValue.TYPE_NULL) { in getText()
95 } else if (type == TypedValue.TYPE_STRING) { in getText()
99 TypedValue v = mValue; in getText()
121 if (type == TypedValue.TYPE_NULL) { in getString()
123 } else if (type == TypedValue.TYPE_STRING) { in getString()
127 TypedValue v = mValue; in getString()
156 if (type == TypedValue.TYPE_STRING) { in getNonResourceString()
185 if (type == TypedValue.TYPE_NULL) { in getNonConfigurationString()
[all …]
DResources.java36 import android.util.TypedValue;
95 /*package*/ final TypedValue mTmpValue = new TypedValue();
538 TypedValue value = mTmpValue; in getDimension()
540 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension()
541 return TypedValue.complexToDimension(value.data, mMetrics); in getDimension()
570 TypedValue value = mTmpValue; in getDimensionPixelOffset()
572 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
573 return TypedValue.complexToDimensionPixelOffset( in getDimensionPixelOffset()
604 TypedValue value = mTmpValue; in getDimensionPixelSize()
606 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
[all …]
DAssetManager.java21 import android.util.TypedValue;
67 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 …]
DXmlBlock.java19 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java42 import android.util.TypedValue;
60 private final static TypedValue mValue = new TypedValue();
327 new UnitEntry("px", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PX, 1.0f),
328 new UnitEntry("dip", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
329 new UnitEntry("dp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
330 new UnitEntry("sp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_SP, 1.0f),
331 new UnitEntry("pt", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PT, 1.0f),
332 new UnitEntry("in", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_IN, 1.0f),
333 new UnitEntry("mm", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_MM, 1.0f),
334 new UnitEntry("%", TypedValue.TYPE_FRACTION, TypedValue.COMPLEX_UNIT_FRACTION, 1.0f/100),
[all …]
/frameworks/base/core/java/android/animation/
DAnimatorInflater.java24 import android.util.TypedValue;
205 TypedValue tvFrom = a.peekValue(valueFromIndex); in loadAnimator()
208 TypedValue tvTo = a.peekValue(valueToIndex); in loadAnimator()
212 if ((hasFrom && (fromType >= TypedValue.TYPE_FIRST_COLOR_INT) && in loadAnimator()
213 (fromType <= TypedValue.TYPE_LAST_COLOR_INT)) || in loadAnimator()
214 (hasTo && (toType >= TypedValue.TYPE_FIRST_COLOR_INT) && in loadAnimator()
215 (toType <= TypedValue.TYPE_LAST_COLOR_INT))) { in loadAnimator()
225 if (fromType == TypedValue.TYPE_DIMENSION) { in loadAnimator()
231 if (toType == TypedValue.TYPE_DIMENSION) { in loadAnimator()
241 if (toType == TypedValue.TYPE_DIMENSION) { in loadAnimator()
[all …]
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java23 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 …]
DAnimation.java24 import android.util.TypedValue;
1044 static Description parseValue(TypedValue value) { in parseValue()
1050 if (value.type == TypedValue.TYPE_FRACTION) { in parseValue()
1051 d.type = (value.data & TypedValue.COMPLEX_UNIT_MASK) == in parseValue()
1052 TypedValue.COMPLEX_UNIT_FRACTION_PARENT ? in parseValue()
1054 d.value = TypedValue.complexToFloat(value.data); in parseValue()
1056 } else if (value.type == TypedValue.TYPE_FLOAT) { in parseValue()
1060 } else if (value.type >= TypedValue.TYPE_FIRST_INT && in parseValue()
1061 value.type <= TypedValue.TYPE_LAST_INT) { in parseValue()
/frameworks/base/core/java/android/util/
DTypedValue.java23 public class TypedValue { class
190 1.0f / (1<<TypedValue.COMPLEX_MANTISSA_SHIFT);
208 return (complex&(TypedValue.COMPLEX_MANTISSA_MASK in complexToFloat()
209 <<TypedValue.COMPLEX_MANTISSA_SHIFT)) in complexToFloat()
210 * RADIX_MULTS[(complex>>TypedValue.COMPLEX_RADIX_SHIFT) in complexToFloat()
211 & TypedValue.COMPLEX_RADIX_MASK]; in complexToFloat()
297 "Dimension (0x" + ((data>>TypedValue.COMPLEX_MANTISSA_SHIFT) in complexToDimensionNoisy()
298 & TypedValue.COMPLEX_MANTISSA_MASK) in complexToDimensionNoisy()
299 + "*" + (RADIX_MULTS[(data>>TypedValue.COMPLEX_RADIX_SHIFT) in complexToDimensionNoisy()
300 & TypedValue.COMPLEX_RADIX_MASK] / MANTISSA_MULT) in complexToDimensionNoisy()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java26 import android.util.TypedValue;
378 TypedValue.complexToDimensionPixelSize(info.minWidth, mDisplayMetrics); in getInstalledProviders()
380 TypedValue.complexToDimensionPixelSize(info.minHeight, mDisplayMetrics); in getInstalledProviders()
382 TypedValue.complexToDimensionPixelSize(info.minResizeWidth, mDisplayMetrics); in getInstalledProviders()
384 TypedValue.complexToDimensionPixelSize(info.minResizeHeight, mDisplayMetrics); in getInstalledProviders()
405 TypedValue.complexToDimensionPixelSize(info.minWidth, mDisplayMetrics); in getAppWidgetInfo()
407 TypedValue.complexToDimensionPixelSize(info.minHeight, mDisplayMetrics); in getAppWidgetInfo()
409 TypedValue.complexToDimensionPixelSize(info.minResizeWidth, mDisplayMetrics); in getAppWidgetInfo()
411 TypedValue.complexToDimensionPixelSize(info.minResizeHeight, mDisplayMetrics); in getAppWidgetInfo()
DAppWidgetHost.java30 import android.util.TypedValue;
261 TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); in onProviderChanged()
263 TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); in onProviderChanged()
265 TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); in onProviderChanged()
267 TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics); in onProviderChanged()
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java28 import android.util.TypedValue;
83 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()
DDimAnimator.java22 import android.util.TypedValue;
101 TypedValue tv = new TypedValue(); in updateParameters()
104 if (tv.type == TypedValue.TYPE_FRACTION) { in updateParameters()
106 } else if (tv.type >= TypedValue.TYPE_FIRST_INT in updateParameters()
107 && tv.type <= TypedValue.TYPE_LAST_INT) { in updateParameters()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DTypedArray_Delegate.java21 import android.util.TypedValue;
26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt()
DBridgeResources.java38 import android.util.TypedValue;
344 mTmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimension()
371 mTmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
372 return TypedValue.complexToDimensionPixelOffset(mTmpValue.data, in getDimensionPixelOffset()
399 mTmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
400 return TypedValue.complexToDimensionPixelSize(mTmpValue.data, in getDimensionPixelSize()
515 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue()
529 outValue.type = TypedValue.TYPE_STRING; in getValue()
540 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue()
641 public InputStream openRawResource(int id, TypedValue value) throws NotFoundException { in openRawResource()
DResources_Theme_Delegate.java25 import android.util.TypedValue;
62 int resid, TypedValue outValue, in resolveAttribute()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java22 import android.util.TypedValue;
331 public static Bitmap decodeResourceStream(Resources res, TypedValue value, in decodeResourceStream()
340 if (density == TypedValue.DENSITY_DEFAULT) { in decodeResourceStream()
342 } else if (density != TypedValue.DENSITY_NONE) { in decodeResourceStream()
371 final TypedValue value = new TypedValue(); in decodeResource()
/frameworks/base/services/java/com/android/server/am/
DLaunchWarningWindow.java23 import android.util.TypedValue;
41 TypedValue out = new TypedValue(); in LaunchWarningWindow()
/frameworks/base/core/java/android/webkit/
DFileLoader.java25 import android.util.TypedValue;
135 TypedValue value = new TypedValue(); in setupStreamAndSendStatus()
137 if (value.type == TypedValue.TYPE_STRING) { in setupStreamAndSendStatus()
/frameworks/base/core/java/com/android/internal/widget/
DDialogTitle.java23 import android.util.TypedValue;
65 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in onMeasure()
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java27 import android.util.TypedValue;
172 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue()
178 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue()
/frameworks/base/core/java/android/app/
DAlertDialog.java27 import android.util.TypedValue;
141 TypedValue outValue = new TypedValue(); in resolveDialogTheme()
324 TypedValue out = new TypedValue(); in setIconAttribute()
473 TypedValue out = new TypedValue(); in setIconAttribute()
/frameworks/base/core/java/android/widget/
DShareActionProvider.java24 import android.util.TypedValue;
168 TypedValue outTypedValue = new TypedValue(); in onCreateActionView()
/frameworks/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java31 import android.util.TypedValue;
88 TypedValue out = new TypedValue(); in onCreate()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java28 import android.util.TypedValue;
352 TypedValue codesValue = new TypedValue(); in Key()
355 if (codesValue.type == TypedValue.TYPE_INT_DEC in Key()
356 || codesValue.type == TypedValue.TYPE_INT_HEX) { in Key()
358 } else if (codesValue.type == TypedValue.TYPE_STRING) { in Key()
884 TypedValue value = a.peekValue(index); in getDimensionOrFraction()
886 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionOrFraction()
888 } else if (value.type == TypedValue.TYPE_FRACTION) { in getDimensionOrFraction()

123