Lines Matching defs:Density
675 // TODO: Not sure if display density should handled by SF any longer
676 class Density {
679 int density = 0;
681 density = atoi(property);
683 return density;
693 // The density of the device is provided by a build property
694 float density = Density::getBuildDensity() / 160.0f;
695 if (density == 0) {
696 // the build doesn't provide a density -- this is wrong!
699 density = xdpi / 160.0f;
701 if (Density::getEmuDensity()) {
703 xdpi = ydpi = density = Density::getEmuDensity();
704 density /= 160.0f;
706 info->density = density;
714 info->density = TV_DENSITY / 160.0f;