/cts/tests/tests/util/src/android/util/cts/ |
TypedValueTest.java | 26 import android.util.TypedValue; 36 new TypedValue(); 42 TypedValue tv = new TypedValue(); 55 final float expected = TypedValue.applyDimension((10 >> TypedValue.COMPLEX_UNIT_SHIFT) 56 & TypedValue.COMPLEX_UNIT_MASK, TypedValue.complexToFloat(10), dm); 58 assertEquals(expected, TypedValue.complexToDimension(10, dm), 0.0f); 59 assertEquals((int)expected, TypedValue.complexToDimensionPixelOffset(10, dm)) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TypedValueTest.java | 4 import android.util.TypedValue; 19 float convertedValue = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 100, metrics); 25 String booleanFalseString = TypedValue.coerceToString(TypedValue.TYPE_INT_BOOLEAN, 0); 26 String booleanTrueString = TypedValue.coerceToString(TypedValue.TYPE_INT_BOOLEAN, 1); 34 String nullString = TypedValue.coerceToString(TypedValue.TYPE_NULL, 0); 41 String intString = TypedValue.coerceToString(TypedValue.TYPE_INT_DEC, 37) [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) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ContentFrameLayout.java | 30 import android.util.TypedValue; 43 private TypedValue mMinWidthMajor; 44 private TypedValue mMinWidthMinor; 45 private TypedValue mFixedWidthMajor; 46 private TypedValue mFixedWidthMinor; 47 private TypedValue mFixedHeightMajor; 48 private TypedValue mFixedHeightMinor; 103 final TypedValue tvw = isPortrait ? mFixedWidthMinor : mFixedWidthMajor; 104 if (tvw != null && tvw.type != TypedValue.TYPE_NULL) { 106 if (tvw.type == TypedValue.TYPE_DIMENSION) [all...] |
ThemeUtils.java | 23 import android.util.TypedValue; 27 private static final ThreadLocal<TypedValue> TL_TYPED_VALUE = new ThreadLocal<>(); 89 final TypedValue tv = getTypedValue(); 98 private static TypedValue getTypedValue() { 99 TypedValue typedValue = TL_TYPED_VALUE.get(); 100 if (typedValue == null) { 101 typedValue = new TypedValue(); 102 TL_TYPED_VALUE.set(typedValue); [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
TransitionUtils.java | 21 import android.util.TypedValue; 35 TypedValue startAlpha = new TypedValue(); 38 TypedValue endAlpha = new TypedValue(); 55 TypedValue startAlpha = new TypedValue(); 58 TypedValue endAlpha = new TypedValue();
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
ThemeUtils.java | 20 import android.util.TypedValue; 30 final TypedValue outValue = new TypedValue();
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
Display.java | 22 import android.util.TypedValue; 49 TypedValue tv = new TypedValue(); 51 actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
FontSizeUtils.java | 19 import android.util.TypedValue; 36 v.setTextSize(TypedValue.COMPLEX_UNIT_PX,
|
/frameworks/base/core/java/android/content/res/ |
TypedArray.java | 30 import android.util.TypedValue; 77 /*package*/ TypedValue mValue = new TypedValue(); 172 if (type == TypedValue.TYPE_NULL) { 174 } else if (type == TypedValue.TYPE_STRING) { 178 final TypedValue v = mValue; 209 if (type == TypedValue.TYPE_NULL) { 211 } else if (type == TypedValue.TYPE_STRING) { 215 final TypedValue v = mValue; 248 if (type == TypedValue.TYPE_STRING) [all...] |
Resources.java | 56 import android.util.TypedValue; 117 /** Single-item pool used to minimize TypedValue allocations. */ 118 private TypedValue mTmpValue = new TypedValue(); 355 final TypedValue value = obtainTempTypedValue(); 371 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { 645 final TypedValue value = obtainTempTypedValue(); 649 if (value.type == TypedValue.TYPE_DIMENSION) { 650 return TypedValue.complexToDimension(value.data, impl.getDisplayMetrics()); 679 final TypedValue value = obtainTempTypedValue() [all...] |
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
PixelUtils.java | 24 import android.util.TypedValue;
102 //InternalDimension id = new InternalDimension(dp, TypedValue.COMPLEX_UNIT_DIP);
103 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, metrics);
114 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, sp, metrics);
148 m.put("px", TypedValue.COMPLEX_UNIT_PX);
149 m.put("dip", TypedValue.COMPLEX_UNIT_DIP);
150 m.put("dp", TypedValue.COMPLEX_UNIT_DIP);
151 m.put("sp", TypedValue.COMPLEX_UNIT_SP); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
SelectablePreference.java | 20 import android.util.TypedValue; 31 mSize = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32,
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
ListItem.java | 22 import android.util.TypedValue; 41 TypedValue color = new TypedValue();
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
ConfigurationBoundResourceCacheTest.java | 21 import android.util.TypedValue; 80 TypedValue staticValue = new TypedValue(); 84 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); 101 TypedValue changingValue = new TypedValue(); 105 float changingDim = TypedValue.complexToDimension(changingValue.data, 124 TypedValue staticValue = new TypedValue(); 125 TypedValue changingValue = new TypedValue() [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
SwitchCompatUtils.java | 26 import android.util.TypedValue; 43 final TypedValue typedValue = new TypedValue(); 46 getSwitchThumbColorStateList(context, color, typedValue), 50 getSwitchTrackColorStateList(context, color, typedValue), PorterDuff.Mode.SRC_IN)); 67 final int color, final TypedValue typedValue) { 80 colors[i] = getThemeAttrColor(context, typedValue, 87 final int color, final TypedValue typedValue) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ResourceHelper.java | 56 import android.util.TypedValue; 75 private final static TypedValue mValue = new TypedValue(); 520 // ------- TypedValue stuff 538 new UnitEntry("px", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PX, 1.0f), 539 new UnitEntry("dip", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f), 540 new UnitEntry("dp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f) [all...] |
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
ThemePreviewLayout.java | 22 import android.util.TypedValue; 77 mMaxColumnWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 80 mMinColumnWidth = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 83 mItemHorizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 86 mItemVerticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTypedValue.java | 4 import android.util.TypedValue; 9 import static android.util.TypedValue.*; 16 * http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/util/TypedValue.java 20 @Implements(TypedValue.class) 23 @RealObject TypedValue typedValue; 27 return Float.intBitsToFloat(typedValue.data); 31 1.0f / (1<<TypedValue.COMPLEX_MANTISSA_SHIFT); 40 return (complex&(TypedValue.COMPLEX_MANTISSA_MASK 41 <<TypedValue.COMPLEX_MANTISSA_SHIFT) [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...] |
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
AppCompatResources.java | 33 import android.util.TypedValue; 46 private static final ThreadLocal<TypedValue> TL_TYPED_VALUE = new ThreadLocal<>(); 160 final TypedValue value = getTypedValue(); 163 return value.type >= TypedValue.TYPE_FIRST_COLOR_INT 164 && value.type <= TypedValue.TYPE_LAST_COLOR_INT; 168 private static TypedValue getTypedValue() { 169 TypedValue tv = TL_TYPED_VALUE.get(); 171 tv = new TypedValue();
|
/cts/tests/tests/content/src/android/content/res/cts/ |
TypedArrayTest.java | 32 import android.util.TypedValue; 80 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type1)); 81 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type2)); 82 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type3)); 83 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type4)); 84 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type5)); 85 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type6)); 86 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type7)); 87 assertEquals(TypedValue.TYPE_STRING, t.getType(R.styleable.style1_type8)); 88 assertEquals(TypedValue.TYPE_FLOAT, t.getType(R.styleable.style1_type9)) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ShareContent.java | 24 import android.util.TypedValue; 47 TypedValue tv = new TypedValue();
|
/frameworks/support/compat/java/android/support/v4/view/ |
ViewConfigurationCompat.java | 23 import android.util.TypedValue; 115 TypedValue outValue = new TypedValue();
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
NavigationViewUsage.java | 26 import android.util.TypedValue; 44 TypedValue value = new TypedValue();
|