Home
last modified time | relevance | path

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

12

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DThemeUtils.java99 TypedValue typedValue = TL_TYPED_VALUE.get(); in getTypedValue() local
100 if (typedValue == null) { in getTypedValue()
101 typedValue = new TypedValue(); in getTypedValue()
102 TL_TYPED_VALUE.set(typedValue); in getTypedValue()
104 return typedValue; in getTypedValue()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java233 TypedValue typedValue = ResourceHelper.getValue(null, value, false /*requireUnit*/); in getPixelValue() local
234 return (int) typedValue.getDimension(metrics); in getPixelValue()
248 TypedValue typedValue = ResourceHelper.getValue("actionBarSize", value.getValue(), in getActionBarHeight() local
250 if (typedValue != null) { in getActionBarHeight()
252 return (int) typedValue.getDimension(metrics); in getActionBarHeight()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DVerticalGridView.java65 TypedValue typedValue = array.peekValue(R.styleable.lbVerticalGridView_columnWidth); in setColumnWidth() local
66 if (typedValue != null) { in setColumnWidth()
DGuidedActionsStylist.java379 TypedValue typedValue = new TypedValue(); in press() local
380 if (ctx.getTheme().resolveAttribute(themeAttrId, typedValue, true)) { in press()
381 mPressAnimator = AnimatorInflater.loadAnimator(ctx, typedValue.resourceId); in press()
943 TypedValue typedValue = new TypedValue(); in onBindCheckMarkView() local
944 if (context.getTheme().resolveAttribute(attrId, typedValue, true)) { in onBindCheckMarkView()
945 drawable = ContextCompat.getDrawable(context, typedValue.resourceId); in onBindCheckMarkView()
1475 private float getFloat(Context ctx, TypedValue typedValue, int attrId) { in getFloat() argument
1476 ctx.getTheme().resolveAttribute(attrId, typedValue, true); in getFloat()
1478 return Float.valueOf(ctx.getResources().getString(typedValue.resourceId)); in getFloat()
1481 private int getInteger(Context ctx, TypedValue typedValue, int attrId) { in getInteger() argument
[all …]
DAbstractMediaItemPresenter.java203 TypedValue typedValue = new TypedValue(); in ViewHolder() local
205 R.attr.playbackMediaItemNumberViewFlipperLayout, typedValue, true); in ViewHolder()
208 ? typedValue.resourceId in ViewHolder()
DHorizontalGridView.java92 TypedValue typedValue = array.peekValue(R.styleable.lbHorizontalGridView_rowHeight); in setRowHeight() local
93 if (typedValue != null) { in setRowHeight()
/frameworks/base/tools/aapt2/flatten/
DXmlFlattener.cpp273 CHECK(xml_attr->compiled_value->Flatten(&flat_attr->typedValue)); in WriteAttributes()
276 flat_attr->typedValue.dataType = android::Res_value::TYPE_STRING; in WriteAttributes()
279 (ResStringPool_ref*) &flat_attr->typedValue.data); in WriteAttributes()
282 flat_attr->typedValue.size = util::HostToDevice16(sizeof(flat_attr->typedValue)); in WriteAttributes()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBrandedSupportFragment.java67 TypedValue typedValue = new TypedValue(); in onInflateTitleView() local
69 R.attr.browseTitleViewLayout, typedValue, true); in onInflateTitleView()
70 return inflater.inflate(found ? typedValue.resourceId : R.layout.lb_browse_title, in onInflateTitleView()
DBrandedFragment.java64 TypedValue typedValue = new TypedValue(); in onInflateTitleView() local
66 R.attr.browseTitleViewLayout, typedValue, true); in onInflateTitleView()
67 return inflater.inflate(found ? typedValue.resourceId : R.layout.lb_browse_title, in onInflateTitleView()
DGuidedStepSupportFragment.java1136 TypedValue typedValue = new TypedValue(); in onCreateView() local
1138 typedValue, true)) { in onCreateView()
1140 float weight = typedValue.getFloat(); in onCreateView()
1235 TypedValue typedValue = new TypedValue(); in isGuidedStepTheme() local
1236 boolean found = context.getTheme().resolveAttribute(resId, typedValue, true); in isGuidedStepTheme()
1238 return found && typedValue.type == TypedValue.TYPE_INT_BOOLEAN && typedValue.data != 0; in isGuidedStepTheme()
1348 TypedValue typedValue = new TypedValue(); in resolveTheme() local
1349 boolean found = context.getTheme().resolveAttribute(resId, typedValue, true); in resolveTheme()
1353 new ContextThemeWrapper(context, typedValue.resourceId); in resolveTheme()
DGuidedStepFragment.java1133 TypedValue typedValue = new TypedValue(); in onCreateView() local
1135 typedValue, true)) { in onCreateView()
1137 float weight = typedValue.getFloat(); in onCreateView()
1232 TypedValue typedValue = new TypedValue(); in isGuidedStepTheme() local
1233 boolean found = context.getTheme().resolveAttribute(resId, typedValue, true); in isGuidedStepTheme()
1235 return found && typedValue.type == TypedValue.TYPE_INT_BOOLEAN && typedValue.data != 0; in isGuidedStepTheme()
1345 TypedValue typedValue = new TypedValue(); in resolveTheme() local
1346 boolean found = context.getTheme().resolveAttribute(resId, typedValue, true); in resolveTheme()
1350 new ContextThemeWrapper(context, typedValue.resourceId); in resolveTheme()
DOnboardingFragment.java547 TypedValue typedValue = new TypedValue(); in resolveTheme() local
548 boolean found = context.getTheme().resolveAttribute(resId, typedValue, true); in resolveTheme()
551 mThemeWrapper = new ContextThemeWrapper(context, typedValue.resourceId); in resolveTheme()
DOnboardingSupportFragment.java550 TypedValue typedValue = new TypedValue(); in resolveTheme() local
551 boolean found = context.getTheme().resolveAttribute(resId, typedValue, true); in resolveTheme()
554 mThemeWrapper = new ContextThemeWrapper(context, typedValue.resourceId); in resolveTheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DConnectedDeviceSignalController.java82 TypedValue typedValue = new TypedValue(); in ConnectedDeviceSignalController() local
83 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in ConnectedDeviceSignalController()
84 mIconScaleFactor = typedValue.getFloat(); in ConnectedDeviceSignalController()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DLayoutInflaterFactoryTestCase.java232 final TypedValue typedValue = new TypedValue(); in getColorAccentValue() local
233 theme.resolveAttribute(R.attr.colorAccent, typedValue, true); in getColorAccentValue()
234 return typedValue; in getColorAccentValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java223 TypedValue typedValue = new TypedValue(); in scaleBatteryMeterViews() local
225 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in scaleBatteryMeterViews()
226 float iconScaleFactor = typedValue.getFloat(); in scaleBatteryMeterViews()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DFillUi.java311 TypedValue typedValue = sTempTypedValue; in resolveMaxWindowSize() local
313 typedValue, true); in resolveMaxWindowSize()
314 outPoint.x = (int) typedValue.getFraction(outPoint.x, outPoint.x); in resolveMaxWindowSize()
316 typedValue, true); in resolveMaxWindowSize()
317 outPoint.y = (int) typedValue.getFraction(outPoint.y, outPoint.y); in resolveMaxWindowSize()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java425 TypedValue typedValue = ResourceHelper.getValue(attr, value.getValue(), true); in getDimension() local
426 if (typedValue != null) { in getDimension()
427 return (int) typedValue.getDimension(mContext.getMetrics()); in getDimension()
/frameworks/base/tools/aapt/
DXMLNode.cpp1583 attr.typedValue.size = htods(sizeof(attr.typedValue)); in flatten_node()
1586 attr.typedValue.res0 = 0; in flatten_node()
1587 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
1588 attr.typedValue.data = htodl(strings.offsetForString(ae.string)); in flatten_node()
1590 attr.typedValue.res0 = 0; in flatten_node()
1591 attr.typedValue.dataType = ae.value.dataType; in flatten_node()
1592 attr.typedValue.data = htodl(ae.value.data); in flatten_node()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp1770 jclass typedValue = FindClassOrDie(env, "android/util/TypedValue"); in register_android_content_AssetManager() local
1771 gTypedValueOffsets.mType = GetFieldIDOrDie(env, typedValue, "type", "I"); in register_android_content_AssetManager()
1772 gTypedValueOffsets.mData = GetFieldIDOrDie(env, typedValue, "data", "I"); in register_android_content_AssetManager()
1773 gTypedValueOffsets.mString = GetFieldIDOrDie(env, typedValue, "string", in register_android_content_AssetManager()
1775 gTypedValueOffsets.mAssetCookie = GetFieldIDOrDie(env, typedValue, "assetCookie", "I"); in register_android_content_AssetManager()
1776 gTypedValueOffsets.mResourceId = GetFieldIDOrDie(env, typedValue, "resourceId", "I"); in register_android_content_AssetManager()
1777 gTypedValueOffsets.mChangingConfigurations = GetFieldIDOrDie(env, typedValue, in register_android_content_AssetManager()
1779 gTypedValueOffsets.mDensity = GetFieldIDOrDie(env, typedValue, "density", "I"); in register_android_content_AssetManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java348 TypedValue typedValue = new TypedValue(); in getIcon() local
349 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in getIcon()
350 float scaleFactor = typedValue.getFloat(); in getIcon()
DSignalClusterView.java147 TypedValue typedValue = new TypedValue(); in SignalClusterView() local
148 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in SignalClusterView()
149 mIconScaleFactor = typedValue.getFloat(); in SignalClusterView()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java726 TypedValue typedValue = new TypedValue(); in ViewportWindow() local
728 typedValue, true); in ViewportWindow()
729 final int borderColor = context.getColor(typedValue.resourceId); in ViewportWindow()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h680 struct Res_value typedValue; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1281 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
1303 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData()
1305 return dtohl(attr->typedValue.data); in getAttributeData()
1308 uint32_t data = dtohl(attr->typedValue.data); in getAttributeData()
1326 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()

12