Searched refs:outValue (Results 1 - 25 of 66) sorted by relevance

123

/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DTypedArray_Delegate.java26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { argument
H A DResources_Theme_Delegate.java93 int resid, TypedValue outValue,
97 outValue, resolveRefs);
91 resolveAttribute( Resources thisResources, Theme thisTheme, int resid, TypedValue outValue, boolean resolveRefs) argument
H A DResources_Delegate.java806 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws argument
808 Resources_Delegate.getValue(resources, id, outValue, true);
809 if (outValue.string != null) {
810 return ResourceHelper.getFont(outValue.string.toString(), resources.mContext, null,
821 static void getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) argument
830 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue,
835 outValue.density =
840 outValue.type = TypedValue.TYPE_STRING;
841 outValue.string = v;
851 static void getValue(Resources resources, String name, TypedValue outValue, boolea argument
[all...]
/frameworks/support/compat/java/android/support/v4/view/
H A DViewConfigurationCompat.java115 TypedValue outValue = new TypedValue();
117 android.R.attr.listPreferredItemHeight, outValue, true)) {
118 return outValue.getDimension(context.getResources().getDisplayMetrics());
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java163 final TypedValue outValue = mValue;
164 if (getResourceValue(resId, 0, outValue, true)) {
165 return outValue.coerceToString();
182 final TypedValue outValue = mValue;
183 final int block = loadResourceBagValue(resId, bagEntryId, outValue, true);
189 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava(
190 outValue.changingConfigurations);
192 if (outValue.type == TypedValue.TYPE_STRING) {
193 return mStringBlocks[block].get(outValue.data);
195 return outValue
223 getResourceValue(@nyRes int resId, int densityDpi, @NonNull TypedValue outValue, boolean resolveRefs) argument
281 getThemeValue(long theme, @AnyRes int resId, @NonNull TypedValue outValue, boolean resolveRefs) argument
816 loadResourceValue(int ident, short density, TypedValue outValue, boolean resolve) argument
820 loadResourceBagValue(int ident, int bagEntryId, TypedValue outValue, boolean resolve) argument
875 loadThemeAttributeValue(long theme, int ident, TypedValue outValue, boolean resolve) argument
[all...]
H A DTypedArray.java1019 * @param outValue TypedValue object in which to place the attribute's
1025 public boolean getValue(@StyleableRes int index, TypedValue outValue) { argument
1030 return getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, outValue);
1245 private boolean getValueAt(int index, TypedValue outValue) { argument
1251 outValue.type = type;
1252 outValue.data = data[index+AssetManager.STYLE_DATA];
1253 outValue.assetCookie = data[index+AssetManager.STYLE_ASSET_COOKIE];
1254 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID];
1255 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava(
1257 outValue
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDialog.java166 TypedValue outValue = new TypedValue();
167 context.getTheme().resolveAttribute(R.attr.dialogTheme, outValue, true);
168 themeId = outValue.resourceId;
H A 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
[all...]
/frameworks/native/include/input/
H A DVirtualKeyMap.h71 bool parseNextIntField(int32_t* outValue);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DResourcesWrapper.java206 public void getValue(int id, TypedValue outValue, boolean resolveRefs) argument
208 mResources.getValue(id, outValue, resolveRefs);
213 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) argument
215 mResources.getValueForDensity(id, density, outValue, resolveRefs);
219 public void getValue(String name, TypedValue outValue, boolean resolveRefs) argument
221 mResources.getValue(name, outValue, resolveRefs);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java565 * @param outValue the TypedValue to receive the parsed value
570 TypedValue outValue, boolean requireUnit) {
610 if (parseUnit(end, outValue, sFloatOut)) {
611 computeTypedValue(outValue, f, sFloatOut[0]);
621 if (outValue != null) {
623 outValue.type = TypedValue.TYPE_FLOAT;
624 outValue.data = Float.floatToIntBits(f);
627 applyUnit(sUnitNames[1], outValue, sFloatOut);
628 computeTypedValue(outValue, f, sFloatOut[0]);
644 private static void computeTypedValue(TypedValue outValue, floa argument
569 parseFloatAttribute(String attribute, @NonNull String value, TypedValue outValue, boolean requireUnit) argument
685 parseUnit(String str, TypedValue outValue, float[] outScale) argument
698 applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) argument
[all...]
/frameworks/base/core/java/android/app/
H A DPresentation.java314 TypedValue outValue = new TypedValue();
316 com.android.internal.R.attr.presentationTheme, outValue, true);
317 theme = outValue.resourceId;
H A DTimePickerDialog.java85 final TypedValue outValue = new TypedValue();
86 context.getTheme().resolveAttribute(R.attr.timePickerDialogTheme, outValue, true);
87 return outValue.resourceId;
H A DDatePickerDialog.java141 final TypedValue outValue = new TypedValue();
142 context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true);
143 return outValue.resourceId;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsParallaxDrawable.java130 TypedValue outValue = new TypedValue();
131 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColorDark, outValue, true)) {
132 return context.getResources().getColor(outValue.resourceId);
H A 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,
H A DPlaybackControlsRowPresenter.java314 TypedValue outValue = new TypedValue();
315 if (context.getTheme().resolveAttribute(R.attr.defaultBrandColor, outValue, true)) {
316 return context.getResources().getColor(outValue.resourceId);
322 TypedValue outValue = new TypedValue();
324 .resolveAttribute(R.attr.playbackProgressPrimaryColor, outValue, true)) {
325 return context.getResources().getColor(outValue.resourceId);
/frameworks/native/libs/input/
H A DVirtualKeyMap.cpp157 bool VirtualKeyMap::Parser::parseNextIntField(int32_t* outValue) { argument
164 *outValue = strtol(token.string(), &end, 0);
/frameworks/base/tools/aapt/
H A DAaptXml.cpp164 uint32_t attrRes, Res_value* outValue, String8* outError) {
172 if (tree.getAttributeValue(idx, outValue) != NO_ERROR) {
173 if (outValue->dataType == Res_value::TYPE_REFERENCE) {
174 resTable.resolveReference(outValue, 0);
163 getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, Res_value* outValue, String8* outError) argument
H A DAaptXml.h114 * Returns the resource for the specified attribute in the outValue parameter.
118 const android::ResXMLTree& tree, uint32_t attrRes, android::Res_value* outValue,
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java177 public void getValue(int id, TypedValue outValue, boolean resolveRefs) argument
183 public void getValue(String name, TypedValue outValue, boolean resolveRefs) argument
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1084 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const
1087 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData);
1317 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const
1326 outValue->copyFrom_dtoh(attr->typedValue);
1328 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) {
3630 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, argument
3680 *outValue = te.value;
4101 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, argument
4159 outValue->size = dtohs(value->size);
4160 outValue
4931 parse_unit(const char* str, Res_value* outValue, float* outScale, const char** outEnd) argument
4964 U16StringToInt(const char16_t* s, size_t len, Res_value* outValue) argument
5053 stringToInt(const char16_t* s, size_t len, Res_value* outValue) argument
5058 stringToFloat(const char16_t* s, size_t len, Res_value* outValue) argument
5153 stringToValue(Res_value* outValue, String16* outString, const char16_t* s, size_t len, bool preserveSpaces, bool coerceType, uint32_t attrID, const String16* defType, const String16* defPackage, Accessor* accessor, void* accessorCookie, uint32_t attrType, bool enforcePrivate) const argument
[all...]
/frameworks/base/libs/androidfw/include/androidfw/
H A 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);
1678 * getTableStringBlock() and getTableCookie()) and fills in 'outValue'. If
1686 * @param outValue Filled in with the resource data that was found.
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, argument
1697 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1756 * fills in 'outValue'. If not found, returns a negative error
1765 * @param outValue Fille
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DBottomSheetDialog.java203 TypedValue outValue = new TypedValue();
205 R.attr.bottomSheetDialogTheme, outValue, true)) {
206 themeId = outValue.resourceId;
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java152 TypedValue outValue = new TypedValue();
154 android.support.v7.appcompat.R.attr.alertDialogTheme, outValue, true);
155 return outValue.resourceId;

Completed in 442 milliseconds

123