Home
last modified time | relevance | path

Searched refs:TYPE_DIMENSION (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/tools/aapt2/link/
DXmlCompatVersioner_test.cpp31 constexpr auto TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION; variable
58 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
60 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
62 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
64 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
66 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
DXmlReferenceLinker_test.cpp37 android::ResTable_map::TYPE_DIMENSION) in SetUp()
/frameworks/layoutlib/bridge/tests/src/android/content/res/
DBridgeTypedArrayTest.java22 import static android.util.TypedValue.TYPE_DIMENSION;
53 assertEquals(TYPE_DIMENSION, BridgeTypedArray.getType("16dp")); in getType()
54 assertEquals(TYPE_DIMENSION, BridgeTypedArray.getType(".16dp")); in getType()
/frameworks/base/core/java/android/animation/
DAnimatorInflater.java337 if (fromType == TypedValue.TYPE_DIMENSION) { in getPVH()
343 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
354 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
365 if (fromType == TypedValue.TYPE_DIMENSION) { in getPVH()
373 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
386 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
581 if (fromType == TypedValue.TYPE_DIMENSION) { in setupValues()
587 if (toType == TypedValue.TYPE_DIMENSION) { in setupValues()
597 if (toType == TypedValue.TYPE_DIMENSION) { in setupValues()
608 if (fromType == TypedValue.TYPE_DIMENSION) { in setupValues()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java732 new UnitEntry("px", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PX, 1.0f),
733 new UnitEntry("dip", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
734 new UnitEntry("dp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
735 new UnitEntry("sp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_SP, 1.0f),
736 new UnitEntry("pt", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PT, 1.0f),
737 new UnitEntry("in", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_IN, 1.0f),
738 new UnitEntry("mm", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_MM, 1.0f),
/frameworks/base/cmds/idmap2/libidmap2/
DResourceUtils.cpp48 case Res_value::TYPE_DIMENSION: in DataTypeToString()
/frameworks/base/core/java/android/content/res/
DTypedArray.java685 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimension()
734 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
784 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
829 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
868 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
DResources.java764 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension()
798 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
834 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
/frameworks/base/tools/aapt2/
DResourceValues_test.cpp30 constexpr const uint32_t TYPE_DIMENSION = android::ResTable_map::TYPE_DIMENSION; variable
232 Attribute attr1(TYPE_DIMENSION); in TEST()
DResourceUtils.cpp595 case android::Res_value::TYPE_DIMENSION: in AndroidTypeToAttributeTypeMask()
596 return android::ResTable_map::TYPE_DIMENSION; in AndroidTypeToAttributeTypeMask()
668 ResTable_map::TYPE_FLOAT | ResTable_map::TYPE_DIMENSION | ResTable_map::TYPE_FRACTION; in TryParseItemForAttribute()
DResourceValues.cpp476 case Res_value::TYPE_DIMENSION: in PrettyPrint()
619 if ((type_mask & android::ResTable_map::TYPE_DIMENSION) != 0) { in MaskString()
692 if (attr.type_mask & android::ResTable_map::TYPE_DIMENSION) { in BuildAttributeMismatchMessage()
DResourceParser.cpp71 return android::ResTable_map::TYPE_DIMENSION; in ParseFormatTypeNoEnumsOrFlags()
514 android::ResTable_map::TYPE_DIMENSION}}, in ParseResource()
519 android::ResTable_map::TYPE_DIMENSION}}, in ParseResource()
/frameworks/base/core/java/android/util/
DTypedValue.java52 public static final int TYPE_DIMENSION = 0x05; field in TypedValue
780 case TYPE_DIMENSION: in coerceToString()
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java264 } else if (type == TypedValue.TYPE_DIMENSION) { in resolveScale()
DAnimation.java1318 } else if (value.type == TypedValue.TYPE_DIMENSION) { in parseValue()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp392 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
393 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
401 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
402 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
411 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
413 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
422 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
424 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java53 import static android.util.TypedValue.TYPE_DIMENSION;
1036 return TYPE_DIMENSION; in getType()
DResources_Delegate.java597 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimension()
625 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
654 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp273 ResourceUtils::TryParseItemForAttribute(attr.value, android::ResTable_map::TYPE_DIMENSION); in TEST()
322 EXPECT_THAT(prim->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
472 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
484 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
DProtoDeserialize.cpp910 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
946 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
/frameworks/base/services/core/java/com/android/server/pm/pkg/component/
DParsedActivityUtils.java579 } else if (widthType == TypedValue.TYPE_DIMENSION) { in parseActivityWindowLayout()
587 } else if (heightType == TypedValue.TYPE_DIMENSION) { in parseActivityWindowLayout()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h311 TYPE_DIMENSION = 0x05, enumerator
1697 TYPE_DIMENSION = 1<<6, enumerator
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp141 if (type_mask & android::ResTable_map::TYPE_DIMENSION) { in AddAttributeFormatDoc()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp5300 { "px", strlen("px"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PX, 1.0f },
5301 { "dip", strlen("dip"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5302 { "dp", strlen("dp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5303 { "sp", strlen("sp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_SP, 1.0f },
5304 { "pt", strlen("pt"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PT, 1.0f },
5305 { "in", strlen("in"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_IN, 1.0f },
5306 { "mm", strlen("mm"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_MM, 1.0f },
5909 if (outValue->dataType == Res_value::TYPE_DIMENSION) { in stringToValue()
5910 if ((attrType&ResTable_map::TYPE_DIMENSION) != 0) { in stringToValue()
7558 } else if (value.dataType == Res_value::TYPE_DIMENSION) { in print_value()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java911 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionOrFraction()

12