Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/content/res/
DAssetManager.java163 final TypedValue outValue = mValue; in getResourceText() local
164 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText()
165 return outValue.coerceToString(); in getResourceText()
182 final TypedValue outValue = mValue; in getResourceBagText() local
183 final int block = loadResourceBagValue(resId, bagEntryId, outValue, true); in getResourceBagText()
189 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getResourceBagText()
190 outValue.changingConfigurations); in getResourceBagText()
192 if (outValue.type == TypedValue.TYPE_STRING) { in getResourceBagText()
193 return mStringBlocks[block].get(outValue.data); in getResourceBagText()
195 return outValue.coerceToString(); in getResourceBagText()
[all …]
DTypedArray.java1025 public boolean getValue(@StyleableRes int index, TypedValue outValue) { in getValue() argument
1030 return getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, outValue); in getValue()
1245 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
1251 outValue.type = type; in getValueAt()
1252 outValue.data = data[index+AssetManager.STYLE_DATA]; in getValueAt()
1253 outValue.assetCookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getValueAt()
1254 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
1255 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getValueAt()
1257 outValue.density = data[index+AssetManager.STYLE_DENSITY]; in getValueAt()
1258 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java595 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument
635 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute()
636 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
646 if (outValue != null) { in parseFloatAttribute()
648 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute()
649 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute()
652 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute()
653 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
669 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument
705 outValue.data |= in computeTypedValue()
[all …]
/frameworks/support/compat/java/android/support/v4/view/
DViewConfigurationCompat.java115 TypedValue outValue = new TypedValue(); in getLegacyScrollFactor() local
117 android.R.attr.listPreferredItemHeight, outValue, true)) { in getLegacyScrollFactor()
118 return outValue.getDimension(context.getResources().getDisplayMetrics()); in getLegacyScrollFactor()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DResourcesWrapper.java206 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
208 mResources.getValue(id, outValue, resolveRefs); in getValue()
213 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) in getValueForDensity() argument
215 mResources.getValueForDensity(id, density, outValue, resolveRefs); in getValueForDensity()
219 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
221 mResources.getValue(name, outValue, resolveRefs); in getValue()
/frameworks/base/tools/aapt/
DAaptXml.cpp180 uint32_t attrRes, Res_value* outValue, String8* outError) { in getResolvedResourceAttribute() argument
188 if (tree.getAttributeValue(idx, outValue) != NO_ERROR) { in getResolvedResourceAttribute()
189 if (outValue->dataType == Res_value::TYPE_REFERENCE) { in getResolvedResourceAttribute()
190 resTable.resolveReference(outValue, 0); in getResolvedResourceAttribute()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDialog.java166 TypedValue outValue = new TypedValue(); in getThemeResId() local
167 context.getTheme().resolveAttribute(R.attr.dialogTheme, outValue, true); in getThemeResId()
168 themeId = outValue.resourceId; in getThemeResId()
DAppCompatDelegateImplV9.java394 TypedValue outValue = new TypedValue();
395 mContext.getTheme().resolveAttribute(R.attr.actionBarTheme, outValue, true);
398 if (outValue.resourceId != 0) {
399 themedContext = new ContextThemeWrapper(mContext, outValue.resourceId);
748 final TypedValue outValue = new TypedValue();
750 baseTheme.resolveAttribute(R.attr.actionBarTheme, outValue, true);
753 if (outValue.resourceId != 0) {
756 actionBarTheme.applyStyle(outValue.resourceId, true);
773 R.attr.actionBarSize, outValue, true);
774 final int height = TypedValue.complexToDimensionPixelSize(outValue.data,
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1108 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
1111 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue()
1341 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
1350 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()
1352 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) { in getAttributeValue()
3655 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument
3705 *outValue = te.value; in getAttribute()
4126 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, in getResource() argument
4184 outValue->size = dtohs(value->size); in getResource()
4185 outValue->res0 = value->res0; in getResource()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsParallaxDrawable.java130 TypedValue outValue = new TypedValue(); in getDefaultBackgroundColor() local
131 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColorDark, outValue, true)) { in getDefaultBackgroundColor()
132 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor()
DPlaybackControlsRowPresenter.java314 TypedValue outValue = new TypedValue(); in getDefaultBackgroundColor() local
315 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true)) { in getDefaultBackgroundColor()
316 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor()
322 TypedValue outValue = new TypedValue(); in getDefaultProgressColor() local
324 .resolveAttribute(R.attr.playbackProgressPrimaryColor, outValue, true)) { in getDefaultProgressColor()
325 return context.getResources().getColor(outValue.resourceId); in getDefaultProgressColor()
DPlaybackControlsRow.java747 TypedValue outValue = new TypedValue();
749 outValue, true)) {
750 return outValue.data;
756 TypedValue outValue = new TypedValue();
758 R.attr.playbackControlsActionIcons, outValue, false)) {
761 TypedArray array = context.getTheme().obtainStyledAttributes(outValue.data,
/frameworks/base/core/java/android/app/
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()
DPresentation.java321 TypedValue outValue = new TypedValue(); in createPresentationContext() local
323 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext()
324 theme = outValue.resourceId; in createPresentationContext()
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/base/libs/androidfw/include/androidfw/
DResourceTypes.h728 ssize_t getTextValue(Res_value* outValue) const;
764 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1631 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue);
1690 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false,
1695 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue,
1697 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1770 ssize_t getAttribute(uint32_t resID, Res_value* outValue,
1841 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1842 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1865 Res_value* outValue) = 0;
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java144 TypedValue outValue = new TypedValue(); in getAlertDialogResolvedTheme() local
146 android.support.v7.appcompat.R.attr.alertDialogTheme, outValue, true); in getAlertDialogResolvedTheme()
147 return outValue.resourceId; in getAlertDialogResolvedTheme()
/frameworks/support/design/src/android/support/design/widget/
DBottomSheetDialog.java203 TypedValue outValue = new TypedValue(); in getThemeResId() local
205 R.attr.bottomSheetDialogTheme, outValue, true)) { in getThemeResId()
206 themeId = outValue.resourceId; in getThemeResId()
/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/core/jni/
Dandroid_util_AssetManager.cpp100 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
104 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue() argument
108 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); in copyValue()
109 env->SetIntField(outValue, gTypedValueOffsets.mAssetCookie, in copyValue()
111 env->SetIntField(outValue, gTypedValueOffsets.mData, value.data); in copyValue()
112 env->SetObjectField(outValue, gTypedValueOffsets.mString, NULL); in copyValue()
113 env->SetIntField(outValue, gTypedValueOffsets.mResourceId, ref); in copyValue()
114 env->SetIntField(outValue, gTypedValueOffsets.mChangingConfigurations, in copyValue()
117 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue()
883 jobject outValue, in android_content_AssetManager_loadResourceValue() argument
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DTypedArray_Delegate.java26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument
DResources_Delegate.java818 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws in getFont() argument
820 Resources_Delegate.getValue(resources, id, outValue, true); in getFont()
821 if (outValue.string != null) { in getFont()
822 return ResourceHelper.getFont(outValue.string.toString(), getContext(resources), null, in getFont()
833 static void getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
842 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue, in getValue()
847 outValue.density = in getValue()
852 outValue.type = TypedValue.TYPE_STRING; in getValue()
853 outValue.string = v; in getValue()
863 static void getValue(Resources resources, String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
DBridgeTypedArray.java793 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
795 outValue.type = getType(index); in getValue()
796 switch (outValue.type) { in getValue()
800 outValue.string = getString(index); in getValue()
803 outValue.resourceId = mResourceId[index]; in getValue()
809 ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false); in getValue()
DResources_Theme_Delegate.java93 int resid, TypedValue outValue, in resolveAttribute() argument
97 outValue, resolveRefs); in resolveAttribute()
/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

123