Home
last modified time | relevance | path

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

123

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java375 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument
415 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute()
416 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
426 if (outValue != null) { in parseFloatAttribute()
428 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute()
429 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute()
432 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute()
433 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
449 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument
485 outValue.data |= in computeTypedValue()
[all …]
/frameworks/base/core/java/android/content/res/
DAssetManager.java193 TypedValue outValue, in getResourceValue() argument
196 int block = loadResourceValue(ident, (short) density, outValue, resolveRefs); in getResourceValue()
198 if (outValue.type != TypedValue.TYPE_STRING) { in getResourceValue()
201 outValue.string = mStringBlocks[block].get(outValue.data); in getResourceValue()
228 TypedValue outValue, boolean resolveRefs) { in getThemeValue() argument
229 int block = loadThemeAttributeValue(theme, ident, outValue, resolveRefs); in getThemeValue()
231 if (outValue.type != TypedValue.TYPE_STRING) { in getThemeValue()
239 outValue.string = blocks[block].get(outValue.data); in getThemeValue()
719 private native final int loadResourceValue(int ident, short density, TypedValue outValue, in loadResourceValue() argument
723 private native final int loadResourceBagValue(int ident, int bagEntryId, TypedValue outValue, in loadResourceBagValue() argument
[all …]
DTypedArray.java785 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
790 return getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, outValue); in getValue()
970 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
976 outValue.type = type; in getValueAt()
977 outValue.data = data[index+AssetManager.STYLE_DATA]; in getValueAt()
978 outValue.assetCookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getValueAt()
979 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
980 outValue.changingConfigurations = data[index+AssetManager.STYLE_CHANGING_CONFIGURATIONS]; in getValueAt()
981 outValue.density = data[index+AssetManager.STYLE_DENSITY]; in getValueAt()
982 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DResourcesWrapper.java205 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
207 mResources.getValue(id, outValue, resolveRefs); in getValue()
211 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) in getValueForDensity() argument
213 mResources.getValueForDensity(id, density, outValue, resolveRefs); in getValueForDensity()
217 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
219 mResources.getValue(name, outValue, resolveRefs); in getValue()
DTintTypedArray.java152 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
153 return mWrapped.getValue(index, outValue); in getValue()
/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/hwui/utils/
DTinyHashMap.h51 bool get(TKey key, TValue& outValue) { in get() argument
57 outValue = mTable.entryAt(index).value; in get()
/frameworks/base/core/java/android/app/
DPresentation.java298 TypedValue outValue = new TypedValue(); in createPresentationContext() local
300 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext()
301 theme = outValue.resourceId; in createPresentationContext()
DTimePickerDialog.java82 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local
83 context.getTheme().resolveAttribute(R.attr.timePickerDialogTheme, outValue, true); in resolveDialogTheme()
84 return outValue.resourceId; in resolveDialogTheme()
DDatePickerDialog.java87 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local
88 context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true); in resolveDialogTheme()
89 return outValue.resourceId; in resolveDialogTheme()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1041 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
1044 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue()
1264 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
1273 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()
1275 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) { in getAttributeValue()
3182 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument
3221 *outValue = te.value; in getAttribute()
3613 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, in getResource() argument
3671 outValue->size = dtohs(value->size); in getResource()
3672 outValue->res0 = value->res0; in getResource()
[all …]
/frameworks/base/include/androidfw/
DResourceTypes.h722 ssize_t getTextValue(Res_value* outValue) const;
758 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1561 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false,
1566 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue,
1568 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1640 ssize_t getAttribute(uint32_t resID, Res_value* outValue,
1704 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1705 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1728 Res_value* outValue) = 0;
1731 Res_value* outValue) = 0;
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarActivityDelegateBase.java274 TypedValue outValue = new TypedValue(); in ensureSubDecor() local
275 mActivity.getTheme().resolveAttribute(R.attr.actionBarTheme, outValue, true); in ensureSubDecor()
278 if (outValue.resourceId != 0) { in ensureSubDecor()
279 themedContext = new ContextThemeWrapper(mActivity, outValue.resourceId); in ensureSubDecor()
965 final TypedValue outValue = new TypedValue();
967 baseTheme.resolveAttribute(R.attr.actionBarTheme, outValue, true);
970 if (outValue.resourceId != 0) {
973 widgetTheme.applyStyle(outValue.resourceId, true);
975 R.attr.actionBarWidgetTheme, outValue, true);
978 R.attr.actionBarWidgetTheme, outValue, true);
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DPlaybackControlsRowPresenter.java298 TypedValue outValue = new TypedValue(); in getDefaultBackgroundColor() local
299 context.getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true); in getDefaultBackgroundColor()
300 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor()
304 TypedValue outValue = new TypedValue(); in getDefaultProgressColor() local
305 context.getTheme().resolveAttribute(R.attr.playbackProgressPrimaryColor, outValue, true); in getDefaultProgressColor()
306 return context.getResources().getColor(outValue.resourceId); in getDefaultProgressColor()
DPlaybackControlsRow.java575 TypedValue outValue = new TypedValue();
576 context.getTheme().resolveAttribute(attributeResId, outValue, true);
577 return outValue.data;
581 TypedValue outValue = new TypedValue();
583 R.attr.playbackControlsActionIcons, outValue, false);
584 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/support/v17/leanback/src/android/support/v17/leanback/app/
DHeadersFragment.java232 TypedValue outValue = new TypedValue(); in getBackgroundColor() local
233 getActivity().getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true); in getBackgroundColor()
234 return getResources().getColor(outValue.resourceId); in getBackgroundColor()
DHeadersSupportFragment.java234 TypedValue outValue = new TypedValue(); in getBackgroundColor() local
235 getActivity().getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true); in getBackgroundColor()
236 return getResources().getColor(outValue.resourceId); in getBackgroundColor()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DTypedArray_Delegate.java26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument
DResources_Theme_Delegate.java92 int resid, TypedValue outValue, in resolveAttribute() argument
96 outValue, resolveRefs); in resolveAttribute()
DBridgeResources.java519 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
527 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue, in getValue()
533 outValue.type = TypedValue.TYPE_STRING; in getValue()
534 outValue.string = v; in getValue()
544 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java172 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
178 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DIconUtils.java277 final TypedValue outValue = new TypedValue(); in applyTintAttr() local
278 context.getTheme().resolveAttribute(tintAttrId, outValue, true); in applyTintAttr()
279 return applyTintColor(context, drawableId, outValue.resourceId); in applyTintAttr()
/frameworks/native/include/input/
DVirtualKeyMap.h71 bool parseNextIntField(int32_t* outValue);
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp98 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
102 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue() argument
106 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); in copyValue()
107 env->SetIntField(outValue, gTypedValueOffsets.mAssetCookie, in copyValue()
109 env->SetIntField(outValue, gTypedValueOffsets.mData, value.data); in copyValue()
110 env->SetObjectField(outValue, gTypedValueOffsets.mString, NULL); in copyValue()
111 env->SetIntField(outValue, gTypedValueOffsets.mResourceId, ref); in copyValue()
112 env->SetIntField(outValue, gTypedValueOffsets.mChangingConfigurations, in copyValue()
115 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue()
790 jobject outValue, in android_content_AssetManager_loadResourceValue() argument
[all …]

123