Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/res/
DAssetManager.java178 TypedValue outValue, in getResourceValue() argument
181 int block = loadResourceValue(ident, outValue, resolveRefs); in getResourceValue()
183 if (outValue.type != TypedValue.TYPE_STRING) { in getResourceValue()
186 outValue.string = mStringBlocks[block].get(outValue.data); in getResourceValue()
213 TypedValue outValue, boolean resolveRefs) { in getThemeValue() argument
214 int block = loadThemeAttributeValue(theme, ident, outValue, resolveRefs); in getThemeValue()
216 if (outValue.type != TypedValue.TYPE_STRING) { in getThemeValue()
223 outValue.string = blocks[block].get(outValue.data); in getThemeValue()
632 private native final int loadResourceValue(int ident, TypedValue outValue, in loadResourceValue() argument
636 private native final int loadResourceBagValue(int ident, int bagEntryId, TypedValue outValue, in loadResourceBagValue() argument
[all …]
DTypedArray.java589 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
590 return getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, outValue); in getValue()
646 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
652 outValue.type = type; in getValueAt()
653 outValue.data = data[index+AssetManager.STYLE_DATA]; in getValueAt()
654 outValue.assetCookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getValueAt()
655 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
656 outValue.changingConfigurations = data[index+AssetManager.STYLE_CHANGING_CONFIGURATIONS]; in getValueAt()
657 outValue.density = data[index+AssetManager.STYLE_DENSITY]; in getValueAt()
659 outValue.string = loadStringValueAt(index); in getValueAt()
DResources.java885 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
887 boolean found = mAssets.getResourceValue(id, outValue, resolveRefs); in getValue()
915 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
919 getValue(id, outValue, resolveRefs); in getValue()
1175 public boolean resolveAttribute(int resid, TypedValue outValue, in resolveAttribute() argument
1177 boolean got = mAssets.getThemeValue(mTheme, resid, outValue, resolveRefs); in resolveAttribute()
1181 + " got=" + got + ", type=0x" + Integer.toHexString(outValue.type) in resolveAttribute()
1182 + ", data=0x" + Integer.toHexString(outValue.data)); in resolveAttribute()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DResourceHelper.java269 public static boolean stringToFloat(String s, TypedValue outValue) { in stringToFloat() argument
307 if (parseUnit(end, outValue, sFloatOut)) { in stringToFloat()
344 outValue.data |= in stringToFloat()
356 if (outValue != null) { in stringToFloat()
357 outValue.type = TypedValue.TYPE_FLOAT; in stringToFloat()
358 outValue.data = Float.floatToIntBits(f); in stringToFloat()
367 private static boolean parseUnit(String str, TypedValue outValue, float[] outScale) {
372 outValue.type = unit.type;
373 outValue.data = unit.unit << TypedValue.COMPLEX_UNIT_SHIFT;
DBridgeResources.java377 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
385 if (ResourceHelper.stringToFloat(v, outValue)) { in getValue()
390 outValue.type = TypedValue.TYPE_STRING; in getValue()
391 outValue.string = v; in getValue()
401 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
DBridgeTypedArray.java721 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
728 return ResourceHelper.stringToFloat(s, outValue); in getValue()
780 public boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
/frameworks/base/libs/utils/
DResourceTypes.cpp577 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
580 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue()
765 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
774 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()
1438 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument
1472 *outValue = te.value; in getAttribute()
1781 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, in getResource() argument
1880 outValue->size = dtohs(bestValue->size); in getResource()
1881 outValue->res0 = bestValue->res0; in getResource()
1882 outValue->dataType = bestValue->dataType; in getResource()
[all …]
/frameworks/base/include/utils/
DResourceTypes.h636 ssize_t getTextValue(Res_value* outValue) const;
668 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1678 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag=false,
1681 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue,
1683 return getResource(res.ident, outValue, false, outSpecFlags, NULL);
1755 ssize_t getAttribute(uint32_t resID, Res_value* outValue,
1817 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1818 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1839 Res_value* outValue) = 0;
1842 Res_value* outValue) = 0;
[all …]
/frameworks/base/test-runner/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/core/jni/
Dandroid_util_AssetManager.cpp86 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
90 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue() argument
94 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); in copyValue()
95 env->SetIntField(outValue, gTypedValueOffsets.mAssetCookie, in copyValue()
97 env->SetIntField(outValue, gTypedValueOffsets.mData, value.data); in copyValue()
98 env->SetObjectField(outValue, gTypedValueOffsets.mString, NULL); in copyValue()
99 env->SetIntField(outValue, gTypedValueOffsets.mResourceId, ref); in copyValue()
100 env->SetIntField(outValue, gTypedValueOffsets.mChangingConfigurations, in copyValue()
103 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue()
706 jobject outValue, in android_content_AssetManager_loadResourceValue() argument
[all …]
/frameworks/base/include/ui/
DEventHub.h96 int32_t* outValue, nsecs_t* outWhen);
/frameworks/base/tools/aapt/
DResourceTable.h168 bool stringToValue(Res_value* outValue, StringPool* pool,
199 Res_value* outValue);
202 Res_value* outValue);
521 Res_value* outValue);
DResourceTable.cpp1896 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, in stringToValue() argument
1910 .stringToValue(outValue, &finalStr, str.string(), str.size(), preserveSpaces, in stringToValue()
1916 outValue->size = sizeof(Res_value); in stringToValue()
1917 outValue->res0 = 0; in stringToValue()
1918 outValue->dataType = outValue->TYPE_STRING; in stringToValue()
1919 outValue->data = 0; in stringToValue()
1927 if (outValue->dataType == outValue->TYPE_STRING) { in stringToValue()
1931 outValue->data = pool->add(finalStr, *style); in stringToValue()
1933 outValue->data = pool->add(finalStr, true); in stringToValue()
1937 outValue->data = 0; in stringToValue()
[all …]
/frameworks/base/libs/ui/
DEventHub.cpp300 int32_t* outValue, nsecs_t* outWhen) in getEvent() argument
307 *outValue = 0; in getEvent()
395 *outValue = iev.value; in getEvent()