/cts/tests/tests/util/src/android/util/cts/ |
TypedValueTest.java | 26 import android.util.TypedValue; 28 @TestTargetClass(TypedValue.class) 33 notes = "Test constructor(s) of {@link TypedValue}", 34 method = "TypedValue", 38 new TypedValue(); 49 TypedValue tv = new TypedValue(); 75 final float EXPECTED = TypedValue.applyDimension((10 >> TypedValue.COMPLEX_UNIT_SHIFT) 76 & TypedValue.COMPLEX_UNIT_MASK, TypedValue.complexToFloat(10), dm) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
TypedArray_Delegate.java | 21 import android.util.TypedValue; 26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) {
|
Resources_Theme_Delegate.java | 25 import android.util.TypedValue; 62 int resid, TypedValue outValue,
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
ThemeUtils.java | 20 import android.util.TypedValue; 30 final TypedValue outValue = new TypedValue();
|
/frameworks/base/core/java/android/content/res/ |
TypedArray.java | 23 import android.util.TypedValue; 45 /*package*/ TypedValue mValue = new TypedValue(); 93 if (type == TypedValue.TYPE_NULL) { 95 } else if (type == TypedValue.TYPE_STRING) { 99 TypedValue v = mValue; 121 if (type == TypedValue.TYPE_NULL) { 123 } else if (type == TypedValue.TYPE_STRING) { 127 TypedValue v = mValue; 156 if (type == TypedValue.TYPE_STRING) [all...] |
Resources.java | 36 import android.util.TypedValue; 95 /*package*/ final TypedValue mTmpValue = new TypedValue(); 538 TypedValue value = mTmpValue; 540 if (value.type == TypedValue.TYPE_DIMENSION) { 541 return TypedValue.complexToDimension(value.data, mMetrics); 570 TypedValue value = mTmpValue; 572 if (value.type == TypedValue.TYPE_DIMENSION) { 573 return TypedValue.complexToDimensionPixelOffset( 604 TypedValue value = mTmpValue [all...] |
AssetManager.java | 21 import android.util.TypedValue; 67 private final TypedValue mValue = new TypedValue(); 150 TypedValue tmpValue = mValue; 153 if (tmpValue.type == TypedValue.TYPE_STRING) { 168 TypedValue tmpValue = mValue; 171 if (tmpValue.type == TypedValue.TYPE_STRING) { 193 TypedValue outValue, 198 if (outValue.type != TypedValue.TYPE_STRING) { 228 TypedValue outValue, boolean resolveRefs) [all...] |
XmlBlock.java | 19 import android.util.TypedValue; 207 if (t == TypedValue.TYPE_NULL) { 212 return TypedValue.coerceToString(t, v); 368 if (t == TypedValue.TYPE_STRING) { 379 if (t >= TypedValue.TYPE_FIRST_INT && 380 t <= TypedValue.TYPE_LAST_INT) { 389 if (t == TypedValue.TYPE_REFERENCE) { 398 if (t >= TypedValue.TYPE_FIRST_INT && 399 t <= TypedValue.TYPE_LAST_INT) { 408 if (t >= TypedValue.TYPE_FIRST_INT & [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ResourceHelper.java | 42 import android.util.TypedValue; 60 private final static TypedValue mValue = new TypedValue(); 309 // ------- TypedValue stuff 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) [all...] |
/frameworks/base/core/java/android/animation/ |
AnimatorInflater.java | 24 import android.util.TypedValue; 205 TypedValue tvFrom = a.peekValue(valueFromIndex); 208 TypedValue tvTo = a.peekValue(valueToIndex); 212 if ((hasFrom && (fromType >= TypedValue.TYPE_FIRST_COLOR_INT) && 213 (fromType <= TypedValue.TYPE_LAST_COLOR_INT)) || 214 (hasTo && (toType >= TypedValue.TYPE_FIRST_COLOR_INT) && 215 (toType <= TypedValue.TYPE_LAST_COLOR_INT))) { 225 if (fromType == TypedValue.TYPE_DIMENSION) { 231 if (toType == TypedValue.TYPE_DIMENSION) { 241 if (toType == TypedValue.TYPE_DIMENSION) [all...] |
/frameworks/base/core/java/android/view/animation/ |
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( 74 if (tv.type == TypedValue.TYPE_FLOAT) { 86 if (tv.type == TypedValue.TYPE_FLOAT) { 99 if (tv.type == TypedValue.TYPE_FLOAT) { 111 if (tv.type == TypedValue.TYPE_FLOAT) [all...] |
Animation.java | 24 import android.util.TypedValue; [all...] |
/frameworks/base/core/java/android/util/ |
TypedValue.java | 23 public class TypedValue { 190 1.0f / (1<<TypedValue.COMPLEX_MANTISSA_SHIFT); 208 return (complex&(TypedValue.COMPLEX_MANTISSA_MASK 209 <<TypedValue.COMPLEX_MANTISSA_SHIFT)) 210 * RADIX_MULTS[(complex>>TypedValue.COMPLEX_RADIX_SHIFT) 211 & TypedValue.COMPLEX_RADIX_MASK]; 297 "Dimension (0x" + ((data>>TypedValue.COMPLEX_MANTISSA_SHIFT) 298 & TypedValue.COMPLEX_MANTISSA_MASK) 299 + "*" + (RADIX_MULTS[(data>>TypedValue.COMPLEX_RADIX_SHIFT) 300 & TypedValue.COMPLEX_RADIX_MASK] / MANTISSA_MULT [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
PrimitiveTest.java | 23 import android.util.TypedValue; 71 final TypedValue v = new TypedValue(); 73 assertEquals(TypedValue.TYPE_INT_BOOLEAN, v.type); 75 + " from TypedValue: in resource 0x" + Integer.toHexString(resid), 89 final TypedValue v = new TypedValue(); 91 assertEquals(TypedValue.TYPE_STRING, v.type);
|
Resources_ThemeTest.java | 26 import android.util.TypedValue; 117 args = {int.class, android.util.TypedValue.class, boolean.class} 120 final TypedValue value = new TypedValue();
|
/frameworks/base/services/java/com/android/server/wm/ |
DimAnimator.java | 22 import android.util.TypedValue; 101 TypedValue tv = new TypedValue(); 104 if (tv.type == TypedValue.TYPE_FRACTION) { 106 } else if (tv.type >= TypedValue.TYPE_FIRST_INT 107 && tv.type <= TypedValue.TYPE_LAST_INT) {
|
Watermark.java | 28 import android.util.TypedValue; 83 TypedValue.COMPLEX_UNIT_DIP, 20, dm); 96 TypedValue.COMPLEX_UNIT_PX, mTextWidth*2, dm); 98 TypedValue.COMPLEX_UNIT_PX, mTextHeight*3, dm); 100 TypedValue.COMPLEX_UNIT_PX, 0xb0000000, dm); 102 TypedValue.COMPLEX_UNIT_PX, 0x60ffffff, dm); 104 TypedValue.COMPLEX_UNIT_PX, 7, dm); 106 TypedValue.COMPLEX_UNIT_PX, 0, dm); 108 TypedValue.COMPLEX_UNIT_PX, 0, dm);
|
/frameworks/base/services/java/com/android/server/am/ |
LaunchWarningWindow.java | 23 import android.util.TypedValue; 41 TypedValue out = new TypedValue();
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ScrollBarView.java | 23 import android.util.TypedValue; 47 TypedValue outValue = new TypedValue();
|
/frameworks/base/core/java/android/appwidget/ |
AppWidgetManager.java | 26 import android.util.TypedValue; 378 TypedValue.complexToDimensionPixelSize(info.minWidth, mDisplayMetrics); 380 TypedValue.complexToDimensionPixelSize(info.minHeight, mDisplayMetrics); 382 TypedValue.complexToDimensionPixelSize(info.minResizeWidth, mDisplayMetrics); 384 TypedValue.complexToDimensionPixelSize(info.minResizeHeight, mDisplayMetrics); 405 TypedValue.complexToDimensionPixelSize(info.minWidth, mDisplayMetrics); 407 TypedValue.complexToDimensionPixelSize(info.minHeight, mDisplayMetrics); 409 TypedValue.complexToDimensionPixelSize(info.minResizeWidth, mDisplayMetrics); 411 TypedValue.complexToDimensionPixelSize(info.minResizeHeight, mDisplayMetrics);
|
AppWidgetHost.java | 30 import android.util.TypedValue; 261 TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); 263 TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); 265 TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); 267 TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics);
|
/frameworks/base/core/java/com/android/internal/widget/ |
DialogTitle.java | 23 import android.util.TypedValue; 65 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
ShortcutPreference.java | 24 import android.util.TypedValue; 59 TypedValue outValue = new TypedValue();
|
/packages/apps/Settings/src/com/android/settings/ |
Display.java | 27 import android.util.TypedValue; 62 mTextSizeTyped = new TypedValue(); 103 mPreview.setTextSize(TypedValue.COMPLEX_UNIT_PX, size); 135 private TypedValue mTextSizeTyped;
|
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 22 import android.util.TypedValue; 331 public static Bitmap decodeResourceStream(Resources res, TypedValue value, 340 if (density == TypedValue.DENSITY_DEFAULT) { 342 } else if (density != TypedValue.DENSITY_NONE) { 371 final TypedValue value = new TypedValue();
|