Home
last modified time | relevance | path

Searched refs:outValue (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
DAssetManager.java160 final TypedValue outValue = mValue; in getResourceText() local
161 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText()
162 return outValue.coerceToString(); in getResourceText()
179 final TypedValue outValue = mValue; in getResourceBagText() local
180 final int block = loadResourceBagValue(resId, bagEntryId, outValue, true); in getResourceBagText()
184 if (outValue.type == TypedValue.TYPE_STRING) { in getResourceBagText()
185 return mStringBlocks[block].get(outValue.data); in getResourceBagText()
187 return outValue.coerceToString(); in getResourceBagText()
215 final boolean getResourceValue(@AnyRes int resId, int densityDpi, @NonNull TypedValue outValue, in getResourceValue() argument
217 final int block = loadResourceValue(resId, (short) densityDpi, outValue, resolveRefs); in getResourceValue()
[all …]
DTypedArray.java970 public boolean getValue(@StyleableRes int index, TypedValue outValue) { in getValue() argument
975 return getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, outValue); in getValue()
1190 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
1196 outValue.type = type; in getValueAt()
1197 outValue.data = data[index+AssetManager.STYLE_DATA]; in getValueAt()
1198 outValue.assetCookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getValueAt()
1199 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
1200 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getValueAt()
1202 outValue.density = data[index+AssetManager.STYLE_DENSITY]; in getValueAt()
1203 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt()
/frameworks/base/tools/aapt2/
DResourceValues.cpp57 bool RawString::flatten(android::Res_value* outValue) const { in flatten()
58 outValue->dataType = android::Res_value::TYPE_STRING; in flatten()
59 outValue->data = util::hostToDevice32(static_cast<uint32_t>(value.getIndex())); in flatten()
86 bool Reference::flatten(android::Res_value* outValue) const { in flatten()
87 outValue->dataType = (referenceType == Reference::Type::kResource) ? in flatten()
89 outValue->data = util::hostToDevice32(id ? id.value().id : 0); in flatten()
146 bool String::flatten(android::Res_value* outValue) const { in flatten()
152 outValue->dataType = android::Res_value::TYPE_STRING; in flatten()
153 outValue->data = util::hostToDevice32(static_cast<uint32_t>(value.getIndex())); in flatten()
188 bool StyledString::flatten(android::Res_value* outValue) const { in flatten()
[all …]
DResourceValues.h144 virtual bool flatten(android::Res_value* outValue) const = 0;
177 bool flatten(android::Res_value* outValue) const override;
204 bool flatten(android::Res_value* outValue) const override;
215 bool flatten(android::Res_value* outValue) const override;
226 bool flatten(android::Res_value* outValue) const override;
243 bool flatten(android::Res_value* outValue) const override;
259 bool flatten(android::Res_value* outValue) const override;
DResourceUtils.cpp389 bool tryParseBool(const StringPiece16& str, bool* outValue) { in tryParseBool() argument
392 if (outValue) { in tryParseBool()
393 *outValue = true; in tryParseBool()
397 if (outValue) { in tryParseBool()
398 *outValue = false; in tryParseBool()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java485 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument
525 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute()
526 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
536 if (outValue != null) { in parseFloatAttribute()
538 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute()
539 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute()
542 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute()
543 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
559 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument
595 outValue.data |= in computeTypedValue()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DResourcesWrapper.java202 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
204 mResources.getValue(id, outValue, resolveRefs); in getValue()
208 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) in getValueForDensity() argument
210 mResources.getValueForDensity(id, density, outValue, resolveRefs); in getValueForDensity()
214 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
216 mResources.getValue(name, outValue, resolveRefs); in getValue()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DIconUtils.java67 final TypedValue outValue = new TypedValue(); in applyTintAttr() local
68 context.getTheme().resolveAttribute(tintAttrId, outValue, true); in applyTintAttr()
69 return applyTintColor(context, drawableId, outValue.resourceId); in applyTintAttr()
/frameworks/base/tools/aapt/
DAaptXml.cpp164 uint32_t attrRes, Res_value* outValue, String8* outError) { in getResolvedResourceAttribute() argument
172 if (tree.getAttributeValue(idx, outValue) != NO_ERROR) { in getResolvedResourceAttribute()
173 if (outValue->dataType == Res_value::TYPE_REFERENCE) { in getResolvedResourceAttribute()
174 resTable.resolveReference(outValue, 0); in getResolvedResourceAttribute()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1078 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
1081 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue()
1311 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
1320 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()
1322 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) { in getAttributeValue()
3519 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument
3568 *outValue = te.value; in getAttribute()
3989 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, in getResource() argument
4047 outValue->size = dtohs(value->size); in getResource()
4048 outValue->res0 = value->res0; in getResource()
[all …]
/frameworks/base/core/java/android/app/
DPresentation.java300 TypedValue outValue = new TypedValue(); in createPresentationContext() local
302 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext()
303 theme = outValue.resourceId; in createPresentationContext()
DTimePickerDialog.java85 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local
86 context.getTheme().resolveAttribute(R.attr.timePickerDialogTheme, outValue, true); in resolveDialogTheme()
87 return outValue.resourceId; in resolveDialogTheme()
DDatePickerDialog.java141 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local
142 context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true); in resolveDialogTheme()
143 return outValue.resourceId; in resolveDialogTheme()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDialog.java164 TypedValue outValue = new TypedValue(); in getThemeResId() local
165 context.getTheme().resolveAttribute(R.attr.dialogTheme, outValue, true); in getThemeResId()
166 themeId = outValue.resourceId; in getThemeResId()
DAppCompatDelegateImplV9.java391 TypedValue outValue = new TypedValue(); in createSubDecor() local
392 mContext.getTheme().resolveAttribute(R.attr.actionBarTheme, outValue, true); in createSubDecor()
395 if (outValue.resourceId != 0) { in createSubDecor()
396 themedContext = new ContextThemeWrapper(mContext, outValue.resourceId); in createSubDecor()
745 final TypedValue outValue = new TypedValue(); in startSupportActionModeFromWindow() local
747 baseTheme.resolveAttribute(R.attr.actionBarTheme, outValue, true); in startSupportActionModeFromWindow()
750 if (outValue.resourceId != 0) { in startSupportActionModeFromWindow()
753 actionBarTheme.applyStyle(outValue.resourceId, true); in startSupportActionModeFromWindow()
770 R.attr.actionBarSize, outValue, true); in startSupportActionModeFromWindow()
771 final int height = TypedValue.complexToDimensionPixelSize(outValue.data, in startSupportActionModeFromWindow()
[all …]
DToolbarActionBar.java532 final TypedValue outValue = new TypedValue(); in ensureListMenuPresenter() local
537 widgetTheme.resolveAttribute(R.attr.actionBarPopupTheme, outValue, true); in ensureListMenuPresenter()
538 if (outValue.resourceId != 0) { in ensureListMenuPresenter()
539 widgetTheme.applyStyle(outValue.resourceId, true); in ensureListMenuPresenter()
543 widgetTheme.resolveAttribute(R.attr.panelMenuListTheme, outValue, true); in ensureListMenuPresenter()
544 if (outValue.resourceId != 0) { in ensureListMenuPresenter()
545 widgetTheme.applyStyle(outValue.resourceId, true); in ensureListMenuPresenter()
/frameworks/base/include/androidfw/
DResourceTypes.h729 ssize_t getTextValue(Res_value* outValue) const;
765 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1561 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue);
1620 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false,
1625 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue,
1627 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1700 ssize_t getAttribute(uint32_t resID, Res_value* outValue,
1771 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1772 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1795 Res_value* outValue) = 0;
[all …]
/frameworks/support/design/src/android/support/design/widget/
DBottomSheetDialog.java151 TypedValue outValue = new TypedValue(); in getThemeResId() local
153 R.attr.bottomSheetDialogTheme, outValue, true)) { in getThemeResId()
154 themeId = outValue.resourceId; in getThemeResId()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java145 TypedValue outValue = new TypedValue(); in getAlertDialogResolvedTheme() local
147 android.support.v7.appcompat.R.attr.alertDialogTheme, outValue, true); in getAlertDialogResolvedTheme()
148 return outValue.resourceId; in getAlertDialogResolvedTheme()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DPlaybackControlsRowPresenter.java302 TypedValue outValue = new TypedValue(); in getDefaultBackgroundColor() local
303 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true)) { in getDefaultBackgroundColor()
304 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor()
310 TypedValue outValue = new TypedValue(); in getDefaultProgressColor() local
312 .resolveAttribute(R.attr.playbackProgressPrimaryColor, outValue, true)) { in getDefaultProgressColor()
313 return context.getResources().getColor(outValue.resourceId); in getDefaultProgressColor()
DPlaybackControlsRow.java600 TypedValue outValue = new TypedValue();
602 outValue, true)) {
603 return outValue.data;
609 TypedValue outValue = new TypedValue();
611 R.attr.playbackControlsActionIcons, outValue, false)) {
614 TypedArray array = context.getTheme().obtainStyledAttributes(outValue.data,
/frameworks/native/libs/input/
DVirtualKeyMap.cpp157 bool VirtualKeyMap::Parser::parseNextIntField(int32_t* outValue) { in parseNextIntField() argument
164 *outValue = strtol(token.string(), &end, 0); in parseNextIntField()
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java177 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
183 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DResources_Theme_Delegate.java93 int resid, TypedValue outValue, in resolveAttribute() argument
97 outValue, resolveRefs); in resolveAttribute()
DTypedArray_Delegate.java26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument

123