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

/frameworks/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.java94 int resid, TypedValue outValue,
98 outValue, resolveRefs);
92 resolveAttribute( Resources thisResources, Theme thisTheme, int resid, TypedValue outValue, boolean resolveRefs) argument
H A DBridgeTypedArray.java793 * @param outValue TypedValue object in which to place the attribute's
799 public boolean getValue(int index, TypedValue outValue) { argument
801 outValue.type = getType(index);
802 switch (outValue.type) {
806 outValue.string = getString(index);
809 outValue.resourceId = mResourceId[index];
815 ResourceHelper.parseFloatAttribute(mNames[index], s, outValue, false);
H A DResources_Delegate.java838 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws argument
840 Resources_Delegate.getValue(resources, id, outValue, true);
841 if (outValue.string != null) {
842 return ResourceHelper.getFont(outValue.string.toString(), getContext(resources), null,
853 static void getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) argument
862 if (ResourceHelper.parseFloatAttribute(value.getFirst(), v, outValue,
867 outValue.density =
872 outValue.type = TypedValue.TYPE_STRING;
873 outValue.string = v;
883 static void getValue(Resources resources, String name, TypedValue outValue, boolea argument
889 getValueForDensity(Resources resources, int id, int density, TypedValue outValue, boolean resolveRefs) argument
[all...]
/frameworks/base/tools/aapt/
H A DAaptXml.cpp180 uint32_t attrRes, Res_value* outValue, String8* outError) {
188 if (tree.getAttributeValue(idx, outValue) != NO_ERROR) {
189 if (outValue->dataType == Res_value::TYPE_REFERENCE) {
190 resTable.resolveReference(outValue, 0);
179 getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, Res_value* outValue, String8* outError) argument
H A DResourceTable.cpp2306 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, argument
2321 .stringToValue(outValue, &finalStr, str.string(), str.size(), preserveSpaces,
2327 outValue->size = sizeof(Res_value);
2328 outValue->res0 = 0;
2329 outValue->dataType = outValue->TYPE_STRING;
2330 outValue->data = 0;
2338 if (outValue->dataType == outValue->TYPE_STRING) {
2353 outValue
2509 getAttributeEnum( uint32_t attrID, const char16_t* name, size_t nameLen, Res_value* outValue) argument
2529 getAttributeFlags( uint32_t attrID, const char16_t* name, size_t nameLen, Res_value* outValue) argument
4425 getItemValue( uint32_t resID, uint32_t attrID, Res_value* outValue) argument
[all...]
/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/test-mock/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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java518 * @param outValue the TypedValue to receive the parsed value
523 TypedValue outValue, boolean requireUnit) {
563 if (parseUnit(end, outValue, sFloatOut)) {
564 computeTypedValue(outValue, f, sFloatOut[0]);
574 if (outValue != null) {
576 outValue.type = TypedValue.TYPE_FLOAT;
577 outValue.data = Float.floatToIntBits(f);
580 applyUnit(sUnitNames[1], outValue, sFloatOut);
581 computeTypedValue(outValue, f, sFloatOut[0]);
597 private static void computeTypedValue(TypedValue outValue, floa argument
522 parseFloatAttribute(String attribute, @NonNull String value, TypedValue outValue, boolean requireUnit) argument
638 parseUnit(String str, TypedValue outValue, float[] outScale) argument
651 applyUnit(UnitEntry unit, TypedValue outValue, float[] outScale) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DTintTypedArray.java216 public boolean getValue(int index, TypedValue outValue) { argument
217 return mWrapped.getValue(index, outValue);
H A DResourcesWrapper.java207 public void getValue(int id, TypedValue outValue, boolean resolveRefs) argument
209 mResources.getValue(id, outValue, resolveRefs);
214 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) argument
216 mResources.getValueForDensity(id, density, outValue, resolveRefs);
220 public void getValue(String name, TypedValue outValue, boolean resolveRefs) argument
222 mResources.getValue(name, outValue, resolveRefs);
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java1021 * @param outValue TypedValue object in which to place the attribute's
1027 public boolean getValue(@StyleableRes int index, TypedValue outValue) { argument
1032 return getValueAt(index * STYLE_NUM_ENTRIES, outValue);
1247 private boolean getValueAt(int index, TypedValue outValue) { argument
1253 outValue.type = type;
1254 outValue.data = data[index + STYLE_DATA];
1255 outValue.assetCookie = data[index + STYLE_ASSET_COOKIE];
1256 outValue.resourceId = data[index + STYLE_RESOURCE_ID];
1257 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava(
1259 outValue
[all...]
H A DResources.java1320 * @param outValue Object in which to place the resource data.
1329 public void getValue(@AnyRes int id, TypedValue outValue, boolean resolveRefs) argument
1331 mResourcesImpl.getValue(id, outValue, resolveRefs);
1347 public void getValueForDensity(@AnyRes int id, int density, TypedValue outValue, argument
1349 mResourcesImpl.getValueForDensity(id, density, outValue, resolveRefs);
1363 * @param outValue Object in which to place the resource data.
1372 public void getValue(String name, TypedValue outValue, boolean resolveRefs) argument
1374 mResourcesImpl.getValue(name, outValue, resolveRefs);
1562 * <var>outValue</var> are ultimately filled in by
1567 * @param outValue Fille
1577 resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) argument
[all...]
H A DResourcesImpl.java210 void getValue(@AnyRes int id, TypedValue outValue, boolean resolveRefs) argument
212 boolean found = mAssets.getResourceValue(id, 0, outValue, resolveRefs);
219 void getValueForDensity(@AnyRes int id, int density, TypedValue outValue, argument
221 boolean found = mAssets.getResourceValue(id, density, outValue, resolveRefs);
228 void getValue(String name, TypedValue outValue, boolean resolveRefs) argument
232 getValue(id, outValue, resolveRefs);
1364 boolean resolveAttribute(int resid, TypedValue outValue, boolean resolveRefs) { argument
1366 return mAssets.getThemeValue(mTheme, resid, outValue, resolveRefs);
H A DAssetManager.java449 * Populates {@code outValue} with the data associated a particular
454 * @param outValue the typed value in which to put the data
457 * @return {@code true} if the data was loaded into {@code outValue},
460 boolean getResourceValue(@AnyRes int resId, int densityDpi, @NonNull TypedValue outValue, argument
462 Preconditions.checkNotNull(outValue, "outValue");
466 mObject, resId, (short) densityDpi, outValue, resolveRefs);
472 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava(
473 outValue.changingConfigurations);
475 if (outValue
639 getThemeValue(long theme, @AnyRes int resId, @NonNull TypedValue outValue, boolean resolveRefs) argument
1306 nativeGetResourceValue(long ptr, @AnyRes int resId, short density, @NonNull TypedValue outValue, boolean resolveReferences) argument
1308 nativeGetResourceBagValue(long ptr, @AnyRes int resId, int bagEntryId, @NonNull TypedValue outValue) argument
1350 nativeThemeGetAttributeValue(long ptr, long themePtr, @AttrRes int resId, @NonNull TypedValue outValue, boolean resolve) argument
[all...]
/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp307 Res_value* outValue = buffer->NextBlock<Res_value>(); local
308 CHECK(item->Flatten(outValue)) << "flatten failed";
309 outValue->size = util::HostToDevice16(sizeof(*outValue));
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DSFFakeHwc_test.cpp132 int32_t* outValue));
136 IComposerClient::Attribute attribute, int32_t* outValue) {
137 return FakeComposerClient::getDisplayAttribute(display, config, attribute, outValue);
135 getDisplayAttributeFake(Display display, Config config, IComposerClient::Attribute attribute, int32_t* outValue) argument
H A DFakeComposerClient.cpp251 int32_t* outValue) {
253 static_cast<int>(config), static_cast<int>(attribute), outValue);
258 *outValue = 1920;
261 *outValue = 1080;
264 *outValue = 1666666666;
267 *outValue = 240;
270 *outValue = 240;
249 getDisplayAttribute(Display display, Config config, IComposerClient::Attribute attribute, int32_t* outValue) argument
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp1069 int BufferQueueProducer::query(int what, int *outValue) { argument
1073 if (outValue == NULL) {
1074 BQ_LOGE("query: outValue was NULL");
1132 *outValue = value;
/frameworks/native/services/vr/hardware_composer/impl/
H A Dvr_hwc.cpp340 int32_t* outValue) {
352 *outValue = display_ptr->width();
355 *outValue = display_ptr->height();
365 *outValue = 1000 * 1000 * 1000 / 30;
368 *outValue = metrics.get().vsync_period_ns;
380 *outValue = 1000 * dpi;
338 getDisplayAttribute(Display display, Config config, IComposerClient::Attribute attribute, int32_t* outValue) argument
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DComposerHal.cpp376 IComposerClient::Attribute attribute, int32_t* outValue)
386 *outValue = tmpValue;
375 getDisplayAttribute(Display display, Config config, IComposerClient::Attribute attribute, int32_t* outValue) argument
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java359 public boolean resolveThemeAttribute(int resId, TypedValue outValue, boolean resolveRefs) { argument
385 outValue.resourceId = getDynamicIdByStyle((StyleResourceValue) value);
392 outValue.type = TypedValue.TYPE_INT_COLOR_ARGB8;
393 outValue.data = Color.parseColor(value.getValue());
396 outValue.type = TypedValue.TYPE_REFERENCE;
414 outValue.resourceId = a;
419 outValue.string = stringValue;
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2Test.cpp185 hwc2_attribute_t attribute, int32_t* outValue,
193 attribute, outValue));
1579 hwc2_attribute_t attribute, int32_t* outValue)
1584 attribute, outValue));
1585 ASSERT_GE(*outValue, 0) << "failed to get valid "
184 getDisplayAttribute(hwc2_display_t display, hwc2_config_t config, hwc2_attribute_t attribute, int32_t* outValue, hwc2_error_t* outErr = nullptr) argument
1578 getActiveConfigAttribute(hwc2_display_t display, hwc2_attribute_t attribute, int32_t* outValue) argument
/frameworks/base/libs/androidfw/include/androidfw/
H A 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);
1741 * getTableStringBlock() and getTableCookie()) and fills in 'outValue'. If
1749 * @param outValue Filled in with the resource data that was found.
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, argument
1760 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL);
1819 * fills in 'outValue'. If not found, returns a negative error
1828 * @param outValue Fille
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1139 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const
1142 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData);
1372 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const
1381 outValue->copyFrom_dtoh(attr->typedValue);
1383 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) {
3838 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, argument
3888 *outValue = te.value;
4314 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, argument
4372 outValue->size = dtohs(value->size);
4373 outValue
5144 parse_unit(const char* str, Res_value* outValue, float* outScale, const char** outEnd) argument
5177 U16StringToInt(const char16_t* s, size_t len, Res_value* outValue) argument
5266 stringToInt(const char16_t* s, size_t len, Res_value* outValue) argument
5271 stringToFloat(const char16_t* s, size_t len, Res_value* outValue) argument
5366 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...]

Completed in 1120 milliseconds