Home
last modified time | relevance | path

Searched refs:TYPE_DIMENSION (Results 1 – 25 of 32) 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/base/core/java/android/animation/
DAnimatorInflater.java334 if (fromType == TypedValue.TYPE_DIMENSION) { in getPVH()
340 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
351 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
362 if (fromType == TypedValue.TYPE_DIMENSION) { in getPVH()
370 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
383 if (toType == TypedValue.TYPE_DIMENSION) { in getPVH()
578 if (fromType == TypedValue.TYPE_DIMENSION) { in setupValues()
584 if (toType == TypedValue.TYPE_DIMENSION) { in setupValues()
594 if (toType == TypedValue.TYPE_DIMENSION) { in setupValues()
605 if (fromType == TypedValue.TYPE_DIMENSION) { in setupValues()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java544 new UnitEntry("px", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PX, 1.0f),
545 new UnitEntry("dip", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
546 new UnitEntry("dp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
547 new UnitEntry("sp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_SP, 1.0f),
548 new UnitEntry("pt", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PT, 1.0f),
549 new UnitEntry("in", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_IN, 1.0f),
550 new UnitEntry("mm", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_MM, 1.0f),
/frameworks/base/core/java/android/util/
DTypedValue.java45 public static final int TYPE_DIMENSION = 0x05; field in TypedValue
509 case TYPE_DIMENSION: in coerceToString()
/frameworks/base/core/java/android/content/res/
DTypedArray.java680 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimension()
728 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
777 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
821 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
859 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
DResources.java753 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension()
787 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
823 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
228 Attribute attr1(TYPE_DIMENSION); in TEST()
DResourceUtils.cpp603 case android::Res_value::TYPE_DIMENSION: in AndroidTypeToAttributeTypeMask()
604 return android::ResTable_map::TYPE_DIMENSION; in AndroidTypeToAttributeTypeMask()
673 ResTable_map::TYPE_FLOAT | ResTable_map::TYPE_DIMENSION | ResTable_map::TYPE_FRACTION; in TryParseItemForAttribute()
DResourceValues.cpp508 case Res_value::TYPE_DIMENSION: in PrettyPrint()
655 if ((type_mask & android::ResTable_map::TYPE_DIMENSION) != 0) { in MaskString()
724 if (attr.type_mask & android::ResTable_map::TYPE_DIMENSION) { in BuildAttributeMismatchMessage()
DResourceParser.cpp67 return android::ResTable_map::TYPE_DIMENSION; in ParseFormatTypeNoEnumsOrFlags()
503 android::ResTable_map::TYPE_DIMENSION}}, in ParseResource()
508 android::ResTable_map::TYPE_DIMENSION}}, in ParseResource()
/frameworks/base/cmds/idmap2/libidmap2/
DResourceUtils.cpp52 case Res_value::TYPE_DIMENSION: in DataTypeToString()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp202 ResourceUtils::TryParseItemForAttribute(attr.value, android::ResTable_map::TYPE_DIMENSION); in TEST()
251 EXPECT_THAT(prim->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
401 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
413 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
DProtoDeserialize.cpp851 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
887 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
DProtoSerialize.cpp532 case android::Res_value::TYPE_DIMENSION: { in Visit()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp372 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
373 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
381 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
382 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
391 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
393 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
402 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
404 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java264 } else if (type == TypedValue.TYPE_DIMENSION) { in resolveScale()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java54 import static android.util.TypedValue.TYPE_DIMENSION;
858 return TYPE_DIMENSION; in getType()
DResources_Delegate.java592 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimension()
620 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
649 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedActivityUtils.java472 } else if (widthType == TypedValue.TYPE_DIMENSION) { in parseLayout()
480 } else if (heightType == TypedValue.TYPE_DIMENSION) { in parseLayout()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h291 TYPE_DIMENSION = 0x05, enumerator
1565 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.cpp5150 { "px", strlen("px"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PX, 1.0f },
5151 { "dip", strlen("dip"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5152 { "dp", strlen("dp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5153 { "sp", strlen("sp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_SP, 1.0f },
5154 { "pt", strlen("pt"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PT, 1.0f },
5155 { "in", strlen("in"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_IN, 1.0f },
5156 { "mm", strlen("mm"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_MM, 1.0f },
5759 if (outValue->dataType == Res_value::TYPE_DIMENSION) { in stringToValue()
5760 if ((attrType&ResTable_map::TYPE_DIMENSION) != 0) { in stringToValue()
7400 } else if (value.dataType == Res_value::TYPE_DIMENSION) { in print_value()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java910 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionOrFraction()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java699 if (tvw.type == TypedValue.TYPE_DIMENSION) {
727 if (tvh.type == TypedValue.TYPE_DIMENSION) {
758 if (tv.type == TypedValue.TYPE_DIMENSION) {

12