/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
D | BridgeContextTest.java | 241 TypedValue outValue = new TypedValue(); in testTypedValue() local 242 mContext.resolveThemeAttribute(android.R.attr.colorPrimary, outValue, true); in testTypedValue() 243 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, outValue.type); in testTypedValue() 244 assertNotEquals(0, outValue.data); in testTypedValue() 246 outValue = new TypedValue(); in testTypedValue() 247 mContext.resolveThemeAttribute(android.R.attr.colorError, outValue, true); in testTypedValue() 248 assertEquals(TypedValue.TYPE_INT_COLOR_RGB4, outValue.type); in testTypedValue() 249 assertEquals(-65536, outValue.data); in testTypedValue() 251 outValue = new TypedValue(); in testTypedValue() 252 mContext.resolveThemeAttribute(attr.colorActivatedHighlight, outValue, true); in testTypedValue() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ThumbnailBehavior.kt | 53 val outValue = TypedValue() in initialize() constant 54 cvh.context.resources.getValue(R.dimen.controls_thumbnail_shadow_x, outValue, true) in initialize() 55 shadowOffsetX = outValue.getFloat() in initialize() 57 cvh.context.resources.getValue(R.dimen.controls_thumbnail_shadow_y, outValue, true) in initialize() 58 shadowOffsetY = outValue.getFloat() in initialize() 60 cvh.context.resources.getValue(R.dimen.controls_thumbnail_shadow_radius, outValue, true) in initialize() 61 shadowRadius = outValue.getFloat() in initialize()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 627 boolean getResourceValue(@AnyRes int resId, int densityDpi, @NonNull TypedValue outValue, in getResourceValue() argument 629 Objects.requireNonNull(outValue, "outValue"); in getResourceValue() 633 mObject, resId, (short) densityDpi, outValue, resolveRefs); in getResourceValue() 639 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getResourceValue() 640 outValue.changingConfigurations); in getResourceValue() 642 if (outValue.type == TypedValue.TYPE_STRING) { in getResourceValue() 643 if ((outValue.string = getPooledStringForCookie(cookie, outValue.data)) == null) { in getResourceValue() 661 final TypedValue outValue = mValue; in getResourceText() local 662 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText() 663 return outValue.coerceToString(); in getResourceText() [all …]
|
D | TypedArray.java | 1094 public boolean getValue(@StyleableRes int index, TypedValue outValue) { in getValue() argument 1099 return getValueAt(index * STYLE_NUM_ENTRIES, outValue); in getValue() 1376 private boolean getValueAt(int index, TypedValue outValue) { in getValueAt() argument 1382 outValue.type = type; in getValueAt() 1383 outValue.data = data[index + STYLE_DATA]; in getValueAt() 1384 outValue.assetCookie = data[index + STYLE_ASSET_COOKIE]; in getValueAt() 1385 outValue.resourceId = data[index + STYLE_RESOURCE_ID]; in getValueAt() 1386 outValue.changingConfigurations = ActivityInfo.activityInfoConfigNativeToJava( in getValueAt() 1388 outValue.density = data[index + STYLE_DENSITY]; in getValueAt() 1389 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null; in getValueAt() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelper.java | 137 TypedValue outValue = new TypedValue(); in getColorStateList() local 138 resource.getValue(resourceEntry.getResourceId(), outValue, true); in getColorStateList() local 139 if (outValue.type == TypedValue.TYPE_REFERENCE && outValue.data == 0) { in getColorStateList() 180 TypedValue outValue = new TypedValue(); in getDrawable() local 181 resource.getValue(resourceEntry.getResourceId(), outValue, true); in getDrawable() local 182 if (outValue.type == TypedValue.TYPE_REFERENCE && outValue.data == 0) { in getDrawable()
|
/frameworks/native/libs/battery/ |
D | LongArrayMultiStateCounter.cpp | 27 std::vector<uint64_t>* outValue) const { in delta() 37 (*outValue)[i] = newValue[i] - previousValue[i]; in delta() 39 (*outValue)[i] = 0; in delta()
|
D | MultiStateCounterTest.cpp | 28 double* outValue) const { in delta() 29 *outValue = newValue - previousValue; in delta() 30 return *outValue >= 0; in delta()
|
/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()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelper.java | 764 TypedValue outValue, boolean requireUnit) { in parseFloatAttribute() argument 804 if (parseUnit(end, outValue, sFloatOut)) { in parseFloatAttribute() 805 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute() 815 if (outValue != null) { in parseFloatAttribute() 817 outValue.type = TypedValue.TYPE_FLOAT; in parseFloatAttribute() 818 outValue.data = Float.floatToIntBits(f); in parseFloatAttribute() 821 applyUnit(sUnitNames[1], outValue, sFloatOut); in parseFloatAttribute() 822 computeTypedValue(outValue, f, sFloatOut[0]); in parseFloatAttribute() 838 private static void computeTypedValue(TypedValue outValue, float value, float scale) { in computeTypedValue() argument 874 outValue.data |= in computeTypedValue() [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 | 330 TypedValue outValue = new TypedValue(); in createPresentationContext() local 332 com.android.internal.R.attr.presentationTheme, outValue, true); in createPresentationContext() 333 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()
|
/frameworks/native/services/inputflinger/tests/ |
D | MultiTouchInputMapper_test.cpp | 103 .WillRepeatedly([](int32_t, int32_t, int32_t* outValue) { in SetUp() argument 104 *outValue = 0; in SetUp() 215 .WillRepeatedly([=](int32_t, int32_t, int32_t* outValue) { in TEST_F() argument 216 *outValue = 1; in TEST_F()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_LongMultiStateCounter.cpp | 35 int64_t *outValue) const { in delta() 36 *outValue = newValue - previousValue; in delta() 37 return *outValue >= 0; in delta()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1326 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue() 1329 outValue->copyFrom_dtoh(((const ResXMLTree_cdataExt*)mCurExt)->typedData); in getTextValue() 1558 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue() 1567 outValue->copyFrom_dtoh(attr->typedValue); in getAttributeValue() 1569 mTree.mDynamicRefTable->lookupResourceValue(outValue) != NO_ERROR) { in getAttributeValue() 4100 ssize_t ResTable::Theme::getAttribute(uint32_t resID, Res_value* outValue, in getAttribute() argument 4150 *outValue = te.value; in getAttribute() 4576 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, in getResource() argument 4631 *outValue = entry.entry->value(); in getResource() 4637 if (grp->dynamicRefTable.lookupResourceValue(outValue) != NO_ERROR) { in getResource() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 767 ssize_t getTextValue(Res_value* outValue) const; 803 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const; 1942 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue); 2023 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false, 2028 inline ssize_t getResource(const ResTable_ref& res, Res_value* outValue, 2030 return getResource(res.ident, outValue, false, 0, outSpecFlags, NULL); 2103 ssize_t getAttribute(uint32_t resID, Res_value* outValue, 2174 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue); 2175 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue); 2176 static bool stringToDouble(const char16_t* s, size_t len, double& outValue); [all …]
|
/frameworks/native/libs/input/ |
D | VirtualKeyMap.cpp | 141 bool VirtualKeyMap::Parser::parseNextIntField(int32_t* outValue) { in parseNextIntField() argument 148 *outValue = strtol(token.c_str(), &end, 0); in parseNextIntField()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 422 public boolean resolveThemeAttribute(int resId, TypedValue outValue, boolean resolveRefs) { in resolveThemeAttribute() argument 445 outValue.resourceId = getDynamicIdByStyle((StyleResourceValue) value); in resolveThemeAttribute() 452 outValue.data = ResourceHelper.getColor(stringValue); in resolveThemeAttribute() 455 outValue.type = TypedValue.TYPE_INT_COLOR_RGB4; in resolveThemeAttribute() 458 outValue.type = TypedValue.TYPE_INT_COLOR_ARGB4; in resolveThemeAttribute() 461 outValue.type = TypedValue.TYPE_INT_COLOR_RGB8; in resolveThemeAttribute() 464 outValue.type = TypedValue.TYPE_INT_COLOR_ARGB8; in resolveThemeAttribute() 468 outValue.type = TypedValue.TYPE_REFERENCE; in resolveThemeAttribute() 471 outValue.type = TypedValue.TYPE_INT_BOOLEAN; in resolveThemeAttribute() 472 outValue.data = "true".equals(stringValue) ? 1 : 0; in resolveThemeAttribute() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/ |
D | PatternBouncerViewModel.kt | 199 val outValue = TypedValue() in <lambda>() constant 202 outValue, in <lambda>() 205 max(min(outValue.float, 1f), MIN_DOT_HIT_FACTOR) in <lambda>()
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | TypedArray_Delegate.java | 26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { in getValueAt() argument
|
D | Resources_Delegate.java | 881 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws in getFont() argument 883 ResourceValue resVal = getResourceValue(resources, id, outValue); in getFont() 893 static void getValue(Resources resources, int id, TypedValue outValue, boolean resolveRefs) in getValue() argument 895 getResourceValue(resources, id, outValue); in getValue() 898 private static ResourceValue getResourceValue(Resources resources, int id, TypedValue outValue) in getResourceValue() argument 907 if (ResourceHelper.parseFloatAttribute(value.first, v, outValue, in getResourceValue() 912 outValue.density = in getResourceValue() 917 outValue.type = TypedValue.TYPE_STRING; in getResourceValue() 918 outValue.string = v; in getResourceValue() 929 static void getValue(Resources resources, String name, TypedValue outValue, boolean resolveRefs) in getValue() argument [all …]
|
D | BridgeTypedArray.java | 782 public boolean getValue(int index, TypedValue outValue) { in getValue() argument 784 outValue.type = getType(index); in getValue() 785 switch (outValue.type) { in getValue() 789 outValue.string = getString(index); in getValue() 792 outValue.resourceId = mResourceId[index]; in getValue() 802 outValue.data = colorStateList.getDefaultColor(); in getValue() 808 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()
|
/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
|