Home
last modified time | relevance | path

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

12

/frameworks/native/libs/utils/
DPropertyMap.cpp58 bool PropertyMap::tryGetProperty(const String8& key, String8& outValue) const { in tryGetProperty()
64 outValue = mProperties.valueAt(index); in tryGetProperty()
68 bool PropertyMap::tryGetProperty(const String8& key, bool& outValue) const { in tryGetProperty()
74 outValue = intValue; in tryGetProperty()
78 bool PropertyMap::tryGetProperty(const String8& key, int32_t& outValue) const { in tryGetProperty()
91 outValue = value; in tryGetProperty()
95 bool PropertyMap::tryGetProperty(const String8& key, float& outValue) const { in tryGetProperty()
108 outValue = value; in tryGetProperty()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java359 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument
399 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute()
400 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
410 if (outValue != null) { in parseFloatAttribute()
412 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute()
413 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute()
416 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute()
417 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute()
433 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument
469 outValue.data |= in computeTypedValue()
[all …]
/frameworks/native/include/utils/
DPropertyMap.h69 bool tryGetProperty(const String8& key, String8& outValue) const;
70 bool tryGetProperty(const String8& key, bool& outValue) const;
71 bool tryGetProperty(const String8& key, int32_t& outValue) const;
72 bool tryGetProperty(const String8& key, float& outValue) const;
/frameworks/base/core/java/android/content/res/
DAssetManager.java193 TypedValue outValue, in getResourceValue() argument
196 int block = loadResourceValue(ident, (short) density, outValue, resolveRefs); in getResourceValue()
198 if (outValue.type != TypedValue.TYPE_STRING) { in getResourceValue()
201 outValue.string = mStringBlocks[block].get(outValue.data); in getResourceValue()
228 TypedValue outValue, boolean resolveRefs) { in getThemeValue() argument
229 int block = loadThemeAttributeValue(theme, ident, outValue, resolveRefs); in getThemeValue()
231 if (outValue.type != TypedValue.TYPE_STRING) { in getThemeValue()
239 outValue.string = blocks[block].get(outValue.data); in getThemeValue()
686 private native final int loadResourceValue(int ident, short density, TypedValue outValue, in loadResourceValue() argument
690 private native final int loadResourceBagValue(int ident, int bagEntryId, TypedValue outValue, in loadResourceBagValue() argument
[all …]
DTypedArray.java642 public boolean getValue(int index, TypedValue outValue) { in getValue() argument
643 return getValueAt(index*AssetManager.STYLE_NUM_ENTRIES, outValue); in getValue()
699 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument
705 outValue.type = type; in getValueAt()
706 outValue.data = data[index+AssetManager.STYLE_DATA]; in getValueAt()
707 outValue.assetCookie = data[index+AssetManager.STYLE_ASSET_COOKIE]; in getValueAt()
708 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
709 outValue.changingConfigurations = data[index+AssetManager.STYLE_CHANGING_CONFIGURATIONS]; in getValueAt()
710 outValue.density = data[index+AssetManager.STYLE_DENSITY]; in getValueAt()
711 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt()
DResources.java1008 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
1010 boolean found = mAssets.getResourceValue(id, 0, outValue, resolveRefs); in getValue()
1031 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) in getValueForDensity() argument
1033 boolean found = mAssets.getResourceValue(id, density, outValue, resolveRefs); in getValueForDensity()
1060 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
1064 getValue(id, outValue, resolveRefs); in getValue()
1320 public boolean resolveAttribute(int resid, TypedValue outValue, in resolveAttribute() argument
1322 boolean got = mAssets.getThemeValue(mTheme, resid, outValue, resolveRefs); in resolveAttribute()
1326 + " got=" + got + ", type=0x" + Integer.toHexString(outValue.type) in resolveAttribute()
1327 + ", data=0x" + Integer.toHexString(outValue.data)); in resolveAttribute()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp235 static status_t idmapLookup(const uint32_t* map, size_t sizeBytes, uint32_t key, uint32_t* outValue) in idmapLookup() argument
258 *outValue = 0; in idmapLookup()
269 *outValue = 0; in idmapLookup()
275 *outValue = 0; in idmapLookup()
278 *outValue = map[index]; in idmapLookup()
836 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
839 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue()
1024 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
1033 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue()
2617 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument
[all …]
DVirtualKeyMap.cpp156 bool VirtualKeyMap::Parser::parseNextIntField(int32_t* outValue) { in parseNextIntField() argument
163 *outValue = strtol(token.string(), &end, 0); in parseNextIntField()
/frameworks/base/include/androidfw/
DResourceTypes.h659 ssize_t getTextValue(Res_value* outValue) const;
691 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1318 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false,
1323 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue,
1325 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1397 ssize_t getAttribute(uint32_t resID, Res_value* outValue,
1460 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1461 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1482 Res_value* outValue) = 0;
1485 Res_value* outValue) = 0;
[all …]
DVirtualKeyMap.h71 bool parseNextIntField(int32_t* outValue);
/frameworks/base/core/java/android/app/
DPresentation.java298 TypedValue outValue = new TypedValue(); in createPresentationContext() local
300 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext()
301 theme = outValue.resourceId; in createPresentationContext()
DAlertDialog.java142 TypedValue outValue = new TypedValue(); in resolveDialogTheme() local
144 outValue, true); in resolveDialogTheme()
145 return outValue.resourceId; in resolveDialogTheme()
DSearchDialog.java113 TypedValue outValue = new TypedValue(); in resolveDialogTheme() local
115 outValue, true); in resolveDialogTheme()
116 return outValue.resourceId; in resolveDialogTheme()
DDialog.java153 TypedValue outValue = new TypedValue(); in Dialog() local
155 outValue, true); in Dialog()
156 theme = outValue.resourceId; in Dialog()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DResources_Theme_Delegate.java62 int resid, TypedValue outValue, in resolveAttribute() argument
65 resid, outValue, resolveRefs); in resolveAttribute()
DTypedArray_Delegate.java26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument
DBridgeResources.java513 public void getValue(int id, TypedValue outValue, boolean resolveRefs) in getValue() argument
521 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue, in getValue()
527 outValue.type = TypedValue.TYPE_STRING; in getValue()
528 outValue.string = v; in getValue()
538 public void getValue(String name, TypedValue outValue, boolean resolveRefs) in getValue() argument
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp81 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
85 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue() argument
89 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); in copyValue()
90 env->SetIntField(outValue, gTypedValueOffsets.mAssetCookie, in copyValue()
92 env->SetIntField(outValue, gTypedValueOffsets.mData, value.data); in copyValue()
93 env->SetObjectField(outValue, gTypedValueOffsets.mString, NULL); in copyValue()
94 env->SetIntField(outValue, gTypedValueOffsets.mResourceId, ref); in copyValue()
95 env->SetIntField(outValue, gTypedValueOffsets.mChangingConfigurations, in copyValue()
98 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density); in copyValue()
685 jobject outValue, in android_content_AssetManager_loadResourceValue() argument
[all …]
/frameworks/base/test-runner/src/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/java/com/android/internal/widget/multiwaveview/
DMultiWaveView.java229 TypedValue outValue = new TypedValue(); in MultiWaveView() local
230 if (a.getValue(R.styleable.MultiWaveView_chevronDrawables, outValue)) { in MultiWaveView()
231 ArrayList<TargetDrawable> chevrons = loadDrawableArray(outValue.resourceId); in MultiWaveView()
241 if (a.getValue(R.styleable.MultiWaveView_targetDrawables, outValue)) { in MultiWaveView()
242 internalSetTargetResources(outValue.resourceId); in MultiWaveView()
249 if (a.getValue(R.styleable.MultiWaveView_targetDescriptions, outValue)) { in MultiWaveView()
250 final int resourceId = outValue.resourceId; in MultiWaveView()
258 if (a.getValue(R.styleable.MultiWaveView_directionDescriptions, outValue)) { in MultiWaveView()
259 final int resourceId = outValue.resourceId; in MultiWaveView()
DGlowPadView.java240 TypedValue outValue = new TypedValue(); in GlowPadView() local
243 if (a.getValue(R.styleable.GlowPadView_targetDrawables, outValue)) { in GlowPadView()
244 internalSetTargetResources(outValue.resourceId); in GlowPadView()
251 if (a.getValue(R.styleable.GlowPadView_targetDescriptions, outValue)) { in GlowPadView()
252 final int resourceId = outValue.resourceId; in GlowPadView()
260 if (a.getValue(R.styleable.GlowPadView_directionDescriptions, outValue)) { in GlowPadView()
261 final int resourceId = outValue.resourceId; in GlowPadView()
/frameworks/base/tools/aapt/
DResourceTable.h211 bool stringToValue(Res_value* outValue, StringPool* pool,
244 Res_value* outValue);
247 Res_value* outValue);
539 Res_value* outValue);
DResourceTable.cpp2093 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, in stringToValue() argument
2108 .stringToValue(outValue, &finalStr, str.string(), str.size(), preserveSpaces, in stringToValue()
2114 outValue->size = sizeof(Res_value); in stringToValue()
2115 outValue->res0 = 0; in stringToValue()
2116 outValue->dataType = outValue->TYPE_STRING; in stringToValue()
2117 outValue->data = 0; in stringToValue()
2125 if (outValue->dataType == outValue->TYPE_STRING) { in stringToValue()
2138 outValue->data = pool->add(finalStr, *style, configTypeName, config); in stringToValue()
2140 outValue->data = pool->add(finalStr, true, configTypeName, config); in stringToValue()
2144 outValue->data = 0; in stringToValue()
[all …]
/frameworks/base/services/input/
DEventHub.h208 int32_t* outValue) const = 0;
272 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const;
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java176 TypedValue outValue = new TypedValue(); in shouldCenterSingleButton() local
178 outValue, true); in shouldCenterSingleButton()
179 return outValue.data != 0; in shouldCenterSingleButton()

12