Lines Matching defs:Density
584 // TODO: Not sure if display density should handled by SF any longer
585 class Density {
588 int density = 0;
590 density = atoi(property);
592 return density;
613 // The density of the device is provided by a build property
614 float density = Density::getBuildDensity() / 160.0f;
615 if (density == 0) {
616 // the build doesn't provide a density -- this is wrong!
619 density = xdpi / 160.0f;
621 if (Density::getEmuDensity()) {
623 xdpi = ydpi = density = Density::getEmuDensity();
624 density /= 160.0f;
626 info.density = density;
634 info.density = TV_DENSITY / 160.0f;