/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 501 boolean getResourceValue(@AnyRes int resId, int densityDpi, @NonNull TypedValue outValue, in getResourceValue() argument 503 Preconditions.checkNotNull(outValue, "outValue"); in getResourceValue() 507 mObject, resId, (short) densityDpi, outValue, resolveRefs); in getResourceValue() 513 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getResourceValue() 514 outValue.changingConfigurations); in getResourceValue() 516 if (outValue.type == TypedValue.TYPE_STRING) { in getResourceValue() 517 outValue.string = mApkAssets[cookie - 1].getStringFromPool(outValue.data); in getResourceValue() 533 final TypedValue outValue = mValue; in getResourceText() local 534 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText() 535 return outValue.coerceToString(); in getResourceText() [all …]
|
D | TypedArray.java | 1078 public boolean getValue(@StyleableRes int index, TypedValue outValue) { in getValue() argument 1083 return getValueAt(index * STYLE_NUM_ENTRIES, outValue); in getValue() 1349 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument 1355 outValue.type = type; in getValueAt() 1356 outValue.data = data[index + STYLE_DATA]; in getValueAt() 1357 outValue.assetCookie = data[index + STYLE_ASSET_COOKIE]; in getValueAt() 1358 outValue.resourceId = data[index + STYLE_RESOURCE_ID]; in getValueAt() 1359 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getValueAt() 1361 outValue.density = data[index + STYLE_DENSITY]; in getValueAt() 1362 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt() [all …]
|
D | Resources.java | 1349 public void getValue(@AnyRes int id, TypedValue outValue, boolean resolveRefs) in getValue() argument 1351 mResourcesImpl.getValue(id, outValue, resolveRefs); in getValue() 1367 public void getValueForDensity(@AnyRes int id, int density, TypedValue outValue, in getValueForDensity() argument 1369 mResourcesImpl.getValueForDensity(id, density, outValue, resolveRefs); in getValueForDensity() 1392 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument 1394 mResourcesImpl.getValue(name, outValue, resolveRefs); in getValue() 1617 public boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { in resolveAttribute() argument 1618 return mThemeImpl.resolveAttribute(resid, outValue, resolveRefs); in resolveAttribute()
|
D | ResourcesImpl.java | 231 void getValue(@AnyRes int id, TypedValue outValue, boolean resolveRefs) in getValue() argument 233 boolean found = mAssets.getResourceValue(id, 0, outValue, resolveRefs); in getValue() 240 void getValueForDensity(@AnyRes int id, int density, TypedValue outValue, in getValueForDensity() argument 242 boolean found = mAssets.getResourceValue(id, density, outValue, resolveRefs); in getValueForDensity() 249 void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument 253 getValue(id, outValue, resolveRefs); in getValue() 1429 boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { in resolveAttribute() argument 1431 return mAssets.getThemeValue(mTheme, resid, outValue, resolveRefs); in resolveAttribute()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelper.java | 575 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument 615 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute() 616 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute() 626 if (outValue != null) { in parseFloatAttribute() 628 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute() 629 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute() 632 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute() 633 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute() 649 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument 685 outValue.data |= in computeTypedValue() [all …]
|
/frameworks/base/core/java/com/android/internal/globalactions/ |
D | ActionsDialog.java | 43 TypedValue outValue = new TypedValue(); in getDialogTheme() local 45 outValue, true); in getDialogTheme() 46 return outValue.resourceId; in getDialogTheme()
|
/frameworks/base/tools/aapt/ |
D | AaptXml.cpp | 180 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()
|
D | AaptXml.h | 118 const android::ResXMLTree& tree, uint32_t attrRes, android::Res_value* outValue,
|
D | ResourceTable.h | 248 bool stringToValue(Res_value* outValue, StringPool* pool, 285 Res_value* outValue); 288 Res_value* outValue); 615 Res_value* outValue);
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1142 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue() 1145 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue() 1375 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue() 1384 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue() 1386 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) { in getAttributeValue() 3853 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument 3903 *outValue = te.value; in getAttribute() 4329 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, in getResource() argument 4387 outValue->size = dtohs(value->size); in getResource() 4388 outValue->res0 = value->res0; in getResource() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TimePickerDialog.java | 87 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local 88 context.getTheme().resolveAttribute(R.attr.timePickerDialogTheme, outValue, true); in resolveDialogTheme() 89 return outValue.resourceId; in resolveDialogTheme()
|
D | Presentation.java | 316 TypedValue outValue = new TypedValue(); in createPresentationContext() local 318 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext() 319 theme = outValue.resourceId; in createPresentationContext()
|
D | DatePickerDialog.java | 143 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local 144 context.getTheme().resolveAttribute(R.attr.datePickerDialogTheme, outValue, true); in resolveDialogTheme() 145 return outValue.resourceId; in resolveDialogTheme()
|
D | AlertDialog.java | 226 final TypedValue outValue = new TypedValue(); in resolveDialogTheme() local 227 context.getTheme().resolveAttribute(R.attr.alertDialogTheme, outValue, true); in resolveDialogTheme() 228 return outValue.resourceId; in resolveDialogTheme()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 736 ssize_t getTextValue(Res_value* outValue) const; 772 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const; 1741 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue); 1812 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false, 1817 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue, 1819 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL); 1892 ssize_t getAttribute(uint32_t resID, Res_value* outValue, 1963 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue); 1964 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue); 1987 Res_value* outValue) = 0; [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelper.java | 131 TypedValue outValue = new TypedValue(); in getDrawable() local 132 resource.getValue(resourceEntry.getResourceId(), outValue, true); in getDrawable() local 133 if (outValue.type == TypedValue.TYPE_REFERENCE && outValue.data == 0) { in getDrawable()
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerClient.cpp | 251 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/ |
D | Resources_Delegate.java | 873 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws in getFont() argument 875 ResourceValue resVal = getResourceValue(resources, id, outValue); in getFont() 885 static void getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) in getValue() argument 887 getResourceValue(resources, id, outValue); in getValue() 890 private static ResourceValue getResourceValue(Resources resources, int id, TypedValue outValue) in getResourceValue() argument 899 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue, in getResourceValue() 904 outValue.density = in getResourceValue() 909 outValue.type = TypedValue.TYPE_STRING; in getResourceValue() 910 outValue.string = v; in getResourceValue() 921 static void getValue(Resources resources, String name, TypedValue outValue, boolean resolveRefs) in getValue() argument [all …]
|
D | BridgeTypedArray.java | 758 public boolean getValue(int index, TypedValue outValue) { in getValue() argument 760 outValue.type = getType(index); in getValue() 761 switch (outValue.type) { in getValue() 765 outValue.string = getString(index); in getValue() 768 outValue.resourceId = mResourceId[index]; in getValue() 778 outValue.data = colorStateList.getDefaultColor(); in getValue() 784 ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false); in getValue()
|
D | Resources_Theme_Delegate.java | 94 int resid, TypedValue outValue, in resolveAttribute() argument 98 outValue, resolveRefs); in resolveAttribute()
|
D | TypedArray_Delegate.java | 26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument
|
/frameworks/native/libs/input/ |
D | VirtualKeyMap.cpp | 142 bool VirtualKeyMap::Parser::parseNextIntField(int32_t* outValue) { in parseNextIntField() argument 149 *outValue = strtol(token.string(), &end, 0); in parseNextIntField()
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
D | ExternalResources.java | 102 public void getValue(int id, TypedValue outValue, boolean resolveRefs) { in getValue() argument 107 outValue.setTo((TypedValue) override); in getValue() 109 outValue.data = (int) override; in getValue()
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockResources.java | 177 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/ |
D | VirtualKeyMap.h | 71 bool parseNextIntField(int32_t* outValue);
|