Home
last modified time | relevance | path

Searched refs:TYPE_DIMENSION (Results 1 – 25 of 26) 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.java543 new UnitEntry("px", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PX, 1.0f),
544 new UnitEntry("dip", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
545 new UnitEntry("dp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_DIP, 1.0f),
546 new UnitEntry("sp", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_SP, 1.0f),
547 new UnitEntry("pt", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_PT, 1.0f),
548 new UnitEntry("in", TypedValue.TYPE_DIMENSION, TypedValue.COMPLEX_UNIT_IN, 1.0f),
549 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.java679 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimension()
727 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
776 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
820 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
858 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
DResources.java676 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension()
710 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
746 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.cpp602 case android::Res_value::TYPE_DIMENSION: in AndroidTypeToAttributeTypeMask()
603 return android::ResTable_map::TYPE_DIMENSION; in AndroidTypeToAttributeTypeMask()
672 ResTable_map::TYPE_FLOAT | ResTable_map::TYPE_DIMENSION | ResTable_map::TYPE_FRACTION; in TryParseItemForAttribute()
DResourceValues.cpp508 case Res_value::TYPE_DIMENSION: in PrettyPrint()
659 if ((type_mask & android::ResTable_map::TYPE_DIMENSION) != 0) { in MaskString()
728 if (attr.type_mask & android::ResTable_map::TYPE_DIMENSION) { in BuildAttributeMismatchMessage()
DResourceParser.cpp63 return android::ResTable_map::TYPE_DIMENSION; in ParseFormatTypeNoEnumsOrFlags()
499 android::ResTable_map::TYPE_DIMENSION}}, in ParseResource()
504 android::ResTable_map::TYPE_DIMENSION}}, in ParseResource()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp198 ResourceUtils::TryParseItemForAttribute(attr.value, android::ResTable_map::TYPE_DIMENSION); in TEST()
247 EXPECT_THAT(prim->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
397 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
409 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
DProtoDeserialize.cpp843 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
879 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
DProtoSerialize.cpp511 case android::Res_value::TYPE_DIMENSION: { in Visit()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp345 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
346 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
354 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
355 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
364 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
366 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
375 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
377 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.java51 import static android.util.TypedValue.TYPE_DIMENSION;
835 return TYPE_DIMENSION; in getType()
DResources_Delegate.java591 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimension()
619 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
648 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp141 if (type_mask & android::ResTable_map::TYPE_DIMENSION) { in AddAttributeFormatDoc()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp5147 { "px", strlen("px"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PX, 1.0f },
5148 { "dip", strlen("dip"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5149 { "dp", strlen("dp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5150 { "sp", strlen("sp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_SP, 1.0f },
5151 { "pt", strlen("pt"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PT, 1.0f },
5152 { "in", strlen("in"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_IN, 1.0f },
5153 { "mm", strlen("mm"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_MM, 1.0f },
5756 if (outValue->dataType == Res_value::TYPE_DIMENSION) { in stringToValue()
5757 if ((attrType&ResTable_map::TYPE_DIMENSION) != 0) { in stringToValue()
7397 } else if (value.dataType == Res_value::TYPE_DIMENSION) { in print_value()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java676 if (tvw.type == TypedValue.TYPE_DIMENSION) {
704 if (tvh.type == TypedValue.TYPE_DIMENSION) {
753 if (tv.type == TypedValue.TYPE_DIMENSION) {
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java1776 } else if (tv.type == TypedValue.TYPE_DIMENSION) {
/frameworks/base/tools/aapt/
DResourceTable.cpp193 { dimensionArray, sizeof(dimensionArray)/2, ResTable_map::TYPE_DIMENSION,
1429 curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_DIMENSION; in compileResourceFile()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java4805 } else if (widthType == TypedValue.TYPE_DIMENSION) { in parseLayout()
4816 } else if (heightType == TypedValue.TYPE_DIMENSION) { in parseLayout()
/frameworks/base/core/java/android/view/
DViewRootImpl.java1798 if (mTmpValue.type == TypedValue.TYPE_DIMENSION) { in measureHierarchy()

12