Home
last modified time | relevance | path

Searched refs:TYPE_DIMENSION (Results 1 – 25 of 36) 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()
55 assertEquals(TYPE_DIMENSION, BridgeTypedArray.getType("9999.dp")); 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.java689 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimension()
738 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
788 } else if (type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
833 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
872 } else if (type == TypedValue.TYPE_DIMENSION) { in getLayoutDimension()
DResources.java775 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimension()
809 if (value.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
845 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.cpp493 case Res_value::TYPE_DIMENSION: in PrettyPrint()
636 if ((type_mask & android::ResTable_map::TYPE_DIMENSION) != 0) { in MaskString()
709 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.cpp395 {"paddingLeft", R::attr::paddingLeft, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
396 {"paddingRight", R::attr::paddingRight, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
404 {"paddingTop", R::attr::paddingTop, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
405 {"paddingBottom", R::attr::paddingBottom, Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
414 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
416 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
425 Attribute(android::ResTable_map::TYPE_DIMENSION)}, in ResourceFileFlattener()
427 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.java599 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimension()
627 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelOffset()
656 tmpValue.type == TypedValue.TYPE_DIMENSION) { in getDimensionPixelSize()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp274 context->GetDiagnostics(), attr.value, android::ResTable_map::TYPE_DIMENSION); in TEST()
323 EXPECT_THAT(prim->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
473 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
485 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/core/java/com/android/internal/pm/pkg/component/
DParsedActivityUtils.java586 } else if (widthType == TypedValue.TYPE_DIMENSION) { in parseActivityWindowLayout()
594 } else if (heightType == TypedValue.TYPE_DIMENSION) { in parseActivityWindowLayout()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java273 assertEquals(TypedValue.TYPE_DIMENSION, outValue.type); in testTypedValue()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h312 TYPE_DIMENSION = 0x05, enumerator
1705 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.cpp5388 { "px", strlen("px"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PX, 1.0f },
5389 { "dip", strlen("dip"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5390 { "dp", strlen("dp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_DIP, 1.0f },
5391 { "sp", strlen("sp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_SP, 1.0f },
5392 { "pt", strlen("pt"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PT, 1.0f },
5393 { "in", strlen("in"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_IN, 1.0f },
5394 { "mm", strlen("mm"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_MM, 1.0f },
6026 if (outValue->dataType == Res_value::TYPE_DIMENSION) { in stringToValue()
6027 if ((attrType&ResTable_map::TYPE_DIMENSION) != 0) { in stringToValue()
7674 } else if (value.dataType == Res_value::TYPE_DIMENSION) { in print_value()

12