Home
last modified time | relevance | path

Searched refs:typedValue (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DCustomScrollView.java74 final TypedValue typedValue = new TypedValue(); in calculateDimensions()
79 typedValue, true); in calculateDimensions()
82 final int maxHeight = (int) typedValue.getFraction(point.y, point.y); in calculateDimensions()
DFillUi.java526 final TypedValue typedValue = sTempTypedValue; in resolveMaxWindowSize() local
528 typedValue, true); in resolveMaxWindowSize()
529 outPoint.x = (int) typedValue.getFraction(outPoint.x, outPoint.x); in resolveMaxWindowSize()
531 typedValue, true); in resolveMaxWindowSize()
532 outPoint.y = (int) typedValue.getFraction(outPoint.y, outPoint.y); in resolveMaxWindowSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeToolTipView.java67 TypedValue typedValue = new TypedValue(); in drawArrow() local
68 getContext().getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); in drawArrow()
69 arrowPaint.setColor(ContextCompat.getColor(getContext(), typedValue.resourceId)); in drawArrow()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java231 TypedValue typedValue = ResourceHelper.getValue(null, value, false /*requireUnit*/); in getPixelValue() local
232 return (int) typedValue.getDimension(metrics); in getPixelValue()
247 TypedValue typedValue = ResourceHelper.getValue("actionBarSize", value.getValue(), in getActionBarHeight() local
249 if (typedValue != null) { in getActionBarHeight()
251 return (int) typedValue.getDimension(metrics); in getActionBarHeight()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaMemoryTracer.cpp136 for (const auto& typedValue : namedItem.second) { in logOutput() local
137 TraceValue traceValue = convertUnits(typedValue.second); in logOutput()
139 log.appendFormat(" %s: %.2f %s (%d %s)\n", typedValue.first, traceValue.value, in logOutput()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp277 CHECK(xml_attr->compiled_value->Flatten(&flat_attr->typedValue)); in WriteAttributes()
289 flat_attr->typedValue.dataType = android::Res_value::TYPE_STRING; in WriteAttributes()
291 reinterpret_cast<ResStringPool_ref*>(&flat_attr->typedValue.data)); in WriteAttributes()
301 flat_attr->typedValue.size = util::HostToDevice16(sizeof(flat_attr->typedValue)); in WriteAttributes()
/frameworks/av/media/codec2/vndk/include/util/
DC2InterfaceHelper.h516 const T *typedValue = T::From(value);
517 if (typedValue == nullptr) {
520 if (*typedValue != *default_) {
549 const T *typedValue = T::From(value);
550 if (typedValue == nullptr) {
590 const T *typedValue = T::From(value);
591 if (typedValue == nullptr) {
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DConnectedDeviceSignalController.java113 TypedValue typedValue = new TypedValue(); in ConnectedDeviceSignalController() local
114 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in ConnectedDeviceSignalController()
115 mIconScaleFactor = typedValue.getFloat(); in ConnectedDeviceSignalController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java421 TypedValue typedValue = new TypedValue(); in scaleBatteryMeterViews() local
423 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in scaleBatteryMeterViews()
424 float iconScaleFactor = typedValue.getFloat(); in scaleBatteryMeterViews()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsOnboarding.java294 TypedValue typedValue = new TypedValue(); in RecentsOnboarding() local
295 context.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); in RecentsOnboarding()
296 mOnboardingToastColor = res.getColor(typedValue.resourceId); in RecentsOnboarding()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java549 TypedValue typedValue = ResourceHelper.getValue(attrRef.getName(), value.getValue(), in getDimension() local
551 if (typedValue != null) { in getDimension()
552 return (int) typedValue.getDimension(mContext.getMetrics()); in getDimension()
/frameworks/base/tools/aapt/
DXMLNode.cpp1580 attr.typedValue.size = htods(sizeof(attr.typedValue)); in flatten_node()
1583 attr.typedValue.res0 = 0; in flatten_node()
1584 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
1585 attr.typedValue.data = htodl(strings.offsetForString(ae.string)); in flatten_node()
1587 attr.typedValue.res0 = 0; in flatten_node()
1588 attr.typedValue.dataType = ae.value.dataType; in flatten_node()
1589 attr.typedValue.data = htodl(ae.value.data); in flatten_node()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp1614 jclass typedValue = FindClassOrDie(env, "android/util/TypedValue"); in register_android_content_AssetManager() local
1615 gTypedValueOffsets.mType = GetFieldIDOrDie(env, typedValue, "type", "I"); in register_android_content_AssetManager()
1616 gTypedValueOffsets.mData = GetFieldIDOrDie(env, typedValue, "data", "I"); in register_android_content_AssetManager()
1618 GetFieldIDOrDie(env, typedValue, "string", "Ljava/lang/CharSequence;"); in register_android_content_AssetManager()
1619 gTypedValueOffsets.mAssetCookie = GetFieldIDOrDie(env, typedValue, "assetCookie", "I"); in register_android_content_AssetManager()
1620 gTypedValueOffsets.mResourceId = GetFieldIDOrDie(env, typedValue, "resourceId", "I"); in register_android_content_AssetManager()
1622 GetFieldIDOrDie(env, typedValue, "changingConfigurations", "I"); in register_android_content_AssetManager()
1623 gTypedValueOffsets.mDensity = GetFieldIDOrDie(env, typedValue, "density", "I"); in register_android_content_AssetManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java409 TypedValue typedValue = new TypedValue(); in getIcon() local
410 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in getIcon()
411 float scaleFactor = typedValue.getFloat(); in getIcon()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java789 TypedValue typedValue = new TypedValue(); in ViewportWindow() local
791 typedValue, true); in ViewportWindow()
792 final int borderColor = context.getColor(typedValue.resourceId); in ViewportWindow()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h688 struct Res_value typedValue; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1339 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
1361 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData()
1363 return dtohl(attr->typedValue.data); in getAttributeData()
1366 uint32_t data = dtohl(attr->typedValue.data); in getAttributeData()
1384 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()