Home
last modified time | relevance | path

Searched refs:srcDensityOverride (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedImageDrawable.java204 private void updateStateFromTypedArray(TypedArray a, int srcDensityOverride) in updateStateFromTypedArray() argument
212 r.getValueForDensity(srcResId, srcDensityOverride, value, true); in updateStateFromTypedArray()
213 if (srcDensityOverride > 0 && value.density > 0 in updateStateFromTypedArray()
215 if (value.density == srcDensityOverride) { in updateStateFromTypedArray()
219 (value.density * r.getDisplayMetrics().densityDpi) / srcDensityOverride; in updateStateFromTypedArray()
DBitmapDrawable.java801 private void updateStateFromTypedArray(TypedArray a, int srcDensityOverride) in updateStateFromTypedArray() argument
812 state.mSrcDensityOverride = srcDensityOverride; in updateStateFromTypedArray()
819 r.getValueForDensity(srcResId, srcDensityOverride, value, true); in updateStateFromTypedArray()
826 if (srcDensityOverride > 0 && value.density > 0 in updateStateFromTypedArray()
828 if (value.density == srcDensityOverride) { in updateStateFromTypedArray()
832 (value.density * r.getDisplayMetrics().densityDpi) / srcDensityOverride; in updateStateFromTypedArray()