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.java460 boolean getResourceValue(@AnyRes int resId, int densityDpi, @NonNull TypedValue outValue, in getResourceValue() argument
462 Preconditions.checkNotNull(outValue, "outValue"); in getResourceValue()
466 mObject, resId, (short) densityDpi, outValue, resolveRefs); in getResourceValue()
472 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getResourceValue()
473 outValue.changingConfigurations); in getResourceValue()
475 if (outValue.type == TypedValue.TYPE_STRING) { in getResourceValue()
476 outValue.string = mApkAssets[cookie - 1].getStringFromPool(outValue.data); in getResourceValue()
491 final TypedValue outValue = mValue; in getResourceText() local
492 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText()
493 return outValue.coerceToString(); in getResourceText()
[all …]
DTypedArray.java1027 public boolean getValue(@StyleableRes int index, TypedValue outValue) { in getValue() argument
1032 return getValueAt(index * STYLE_NUM_ENTRIES, outValue); in getValue()
1247 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
1253 outValue.type = type; in getValueAt()
1254 outValue.data = data[index + STYLE_DATA]; in getValueAt()
1255 outValue.assetCookie = data[index + STYLE_ASSET_COOKIE]; in getValueAt()
1256 outValue.resourceId = data[index + STYLE_RESOURCE_ID]; in getValueAt()
1257 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getValueAt()
1259 outValue.density = data[index + STYLE_DENSITY]; in getValueAt()
1260 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java523 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument
563 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute()
564 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
574 if (outValue != null) { in parseFloatAttribute()
576 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute()
577 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute()
580 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute()
581 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
597 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument
633 outValue.data |= in computeTypedValue()
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DResourcesWrapper.java207 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
209 mResources.getValue(id, outValue, resolveRefs); in getValue()
214 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) in getValueForDensity() argument
216 mResources.getValueForDensity(id, density, outValue, resolveRefs); in getValueForDensity()
220 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
222 mResources.getValue(name, outValue, resolveRefs); in getValue()
/frameworks/support/compat/src/main/java/androidx/core/view/
DViewConfigurationCompat.java114 TypedValue outValue = new TypedValue(); in getLegacyScrollFactor() local
116 android.R.attr.listPreferredItemHeight, outValue, true)) { in getLegacyScrollFactor()
117 return outValue.getDimension(context.getResources().getDisplayMetrics()); in getLegacyScrollFactor()
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsDialog.java43 TypedValue outValue = new TypedValue(); in getDialogTheme() local
45 outValue, true); in getDialogTheme()
46 return outValue.resourceId; in getDialogTheme()
/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/main/java/androidx/appcompat/app/
DAppCompatDialog.java167 TypedValue outValue = new TypedValue(); in getThemeResId() local
168 context.getTheme().resolveAttribute(R.attr.dialogTheme, outValue, true); in getThemeResId()
169 themeId = outValue.resourceId; in getThemeResId()
DAppCompatDelegateImpl.java586 TypedValue outValue = new TypedValue();
587 mContext.getTheme().resolveAttribute(R.attr.actionBarTheme, outValue, true);
590 if (outValue.resourceId != 0) {
591 themedContext = new ContextThemeWrapper(mContext, outValue.resourceId);
952 final TypedValue outValue = new TypedValue();
954 baseTheme.resolveAttribute(R.attr.actionBarTheme, outValue, true);
957 if (outValue.resourceId != 0) {
960 actionBarTheme.applyStyle(outValue.resourceId, true);
977 R.attr.actionBarSize, outValue, true);
978 final int height = TypedValue.complexToDimensionPixelSize(outValue.data,
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DDetailsParallaxDrawable.java133 TypedValue outValue = new TypedValue(); in getDefaultBackgroundColor() local
134 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColorDark, outValue, true)) { in getDefaultBackgroundColor()
135 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor()
DPlaybackControlsRowPresenter.java316 TypedValue outValue = new TypedValue(); in getDefaultBackgroundColor() local
317 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true)) { in getDefaultBackgroundColor()
318 return context.getResources().getColor(outValue.resourceId); in getDefaultBackgroundColor()
324 TypedValue outValue = new TypedValue(); in getDefaultProgressColor() local
326 .resolveAttribute(R.attr.playbackProgressPrimaryColor, outValue, true)) { in getDefaultProgressColor()
327 return context.getResources().getColor(outValue.resourceId); in getDefaultProgressColor()
DPlaybackControlsRow.java748 TypedValue outValue = new TypedValue();
750 outValue, true)) {
751 return outValue.data;
757 TypedValue outValue = new TypedValue();
759 R.attr.playbackControlsActionIcons, outValue, false)) {
762 TypedArray array = context.getTheme().obtainStyledAttributes(outValue.data,
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1139 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
1142 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue()
1372 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
1381 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()
1383 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) { in getAttributeValue()
3838 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument
3888 *outValue = te.value; in getAttribute()
4314 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, in getResource() argument
4372 outValue->size = dtohs(value->size); in getResource()
4373 outValue->res0 = value->res0; in getResource()
[all …]
/frameworks/base/core/java/android/app/
DPresentation.java314 TypedValue outValue = new TypedValue(); in createPresentationContext() local
316 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext()
317 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/base/libs/androidfw/include/androidfw/
DResourceTypes.h734 ssize_t getTextValue(Res_value* outValue) const;
770 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1682 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue);
1753 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false,
1758 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue,
1760 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1833 ssize_t getAttribute(uint32_t resID, Res_value* outValue,
1904 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1905 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1928 Res_value* outValue) = 0;
[all …]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.cpp251 int32_t* outValue) { in getDisplayAttribute() argument
253 static_cast<int>(config), static_cast<int>(attribute), outValue); in getDisplayAttribute()
258 *outValue = 1920; in getDisplayAttribute()
261 *outValue = 1080; in getDisplayAttribute()
264 *outValue = 1666666666; in getDisplayAttribute()
267 *outValue = 240; in getDisplayAttribute()
270 *outValue = 240; in getDisplayAttribute()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java838 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws in getFont() argument
840 Resources_Delegate.getValue(resources, id, outValue, true); in getFont()
841 if (outValue.string != null) { in getFont()
842 return ResourceHelper.getFont(outValue.string.toString(), getContext(resources), null, in getFont()
853 static void getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
862 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue, in getValue()
867 outValue.density = in getValue()
872 outValue.type = TypedValue.TYPE_STRING; in getValue()
873 outValue.string = v; in getValue()
883 static void getValue(Resources resources, String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
[all …]
DBridgeTypedArray.java799 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
801 outValue.type = getType(index); in getValue()
802 switch (outValue.type) { in getValue()
806 outValue.string = getString(index); in getValue()
809 outValue.resourceId = mResourceId[index]; in getValue()
815 ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false); in getValue()
DTypedArray_Delegate.java26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument
DResources_Theme_Delegate.java94 int resid, TypedValue outValue, in resolveAttribute() argument
98 outValue, resolveRefs); in resolveAttribute()
/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-mock/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/native/include/input/
DVirtualKeyMap.h71 bool parseNextIntField(int32_t* outValue);

123