Home
last modified time | relevance | path

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

/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/base/packages/SystemUI/src/com/android/systemui/dreams/touch/dagger/
DBouncerSwipeModule.java106 TypedValue typedValue = new TypedValue(); in providesSwipeToBouncerStartRegion() local
108 typedValue, true); in providesSwipeToBouncerStartRegion()
109 return typedValue.getFloat(); in providesSwipeToBouncerStartRegion()
/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/packages/SystemUI/src/com/android/systemui/controls/
DTooltipManager.kt81 val typedValue = TypedValue() in <lambda>() constant
82 context.theme.resolveAttribute(android.R.attr.colorAccent, typedValue, true) in <lambda>()
83 val toastColor = context.resources.getColor(typedValue.resourceId, context.theme) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflow.kt86 val typedValue = TypedValue() in updateBtnTheme() constant
88 typedValue, true) in updateBtnTheme()
89 val colorAccent = res.getColor(typedValue.resourceId, null) in updateBtnTheme()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaMemoryTracer.cpp139 for (const auto& typedValue : namedItem.second) { in logOutput() local
140 TraceValue traceValue = convertUnits(typedValue.second); in logOutput()
142 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/SystemUI/src/com/android/systemui/battery/
DBatteryMeterView.java392 TypedValue typedValue = new TypedValue(); in scaleBatteryMeterViews() local
394 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in scaleBatteryMeterViews()
395 float iconScaleFactor = typedValue.getFloat(); in scaleBatteryMeterViews()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DFillUi.java567 final TypedValue typedValue = sTempTypedValue; in resolveMaxWindowSize() local
569 typedValue, true); in resolveMaxWindowSize()
570 outPoint.x = (int) typedValue.getFraction(outPoint.x, outPoint.x); in resolveMaxWindowSize()
572 typedValue, true); in resolveMaxWindowSize()
573 outPoint.y = (int) typedValue.getFraction(outPoint.y, outPoint.y); in resolveMaxWindowSize()
/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.cpp1545 jclass typedValue = FindClassOrDie(env, "android/util/TypedValue"); in register_android_content_AssetManager() local
1546 gTypedValueOffsets.mType = GetFieldIDOrDie(env, typedValue, "type", "I"); in register_android_content_AssetManager()
1547 gTypedValueOffsets.mData = GetFieldIDOrDie(env, typedValue, "data", "I"); in register_android_content_AssetManager()
1549 GetFieldIDOrDie(env, typedValue, "string", "Ljava/lang/CharSequence;"); in register_android_content_AssetManager()
1550 gTypedValueOffsets.mAssetCookie = GetFieldIDOrDie(env, typedValue, "assetCookie", "I"); in register_android_content_AssetManager()
1551 gTypedValueOffsets.mResourceId = GetFieldIDOrDie(env, typedValue, "resourceId", "I"); in register_android_content_AssetManager()
1553 GetFieldIDOrDie(env, typedValue, "changingConfigurations", "I"); in register_android_content_AssetManager()
1554 gTypedValueOffsets.mDensity = GetFieldIDOrDie(env, typedValue, "density", "I"); in register_android_content_AssetManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java442 TypedValue typedValue = new TypedValue(); in getIcon() local
444 typedValue, true); in getIcon()
445 float scaleFactor = typedValue.getFloat(); in getIcon()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java1150 TypedValue typedValue = new TypedValue(); in ViewportWindow() local
1152 typedValue, true); in ViewportWindow()
1153 final int borderColor = context.getColor(typedValue.resourceId); in ViewportWindow()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h709 struct Res_value typedValue; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1456 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
1479 !mTree.mDynamicRefTable->requiresLookup(&attr->typedValue)) { in getAttributeData()
1480 return dtohl(attr->typedValue.data); in getAttributeData()
1482 uint32_t data = dtohl(attr->typedValue.data); in getAttributeData()
1500 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()