Lines Matching defs:density
34 IconLoader(String iconName, Density density, int platformVersion, LayoutDirection direction) {
36 mDesiredDensity = density;
56 * Should only be called after {@link #getIcon()}. Returns the density of the icon, if found by
73 * If a match is found, mCurrentDensity will be set to the icon's density.
76 // First check for the desired density.
82 // Didn't find in the desired density. Search in all.
83 for (Density density : Density.values()) {
84 if (density == mDesiredDensity) {
85 // Skip the desired density since it's already been checked.
88 stream = getIcon(resourceDir, density);
90 mCurrentDensity = density;
98 * Returns the icon for given density present in the given resource directory, taking layout
101 private InputStream getIcon(String resourceDir, Density density) {
110 .append(density.getResourceValue())
120 .append(density.getResourceValue())