parameters: (self)
return_statement: return DPI_TO_DENSITY.get(self.pixel_density, 'tvdpi')
docstring: Returns the screen density of the device.
docstring_summary: Returns the screen density of the device.
docstring_tokens: Returns the screen density of the device .
function: def screen_density(self):
      """Returns the screen density of the device."""
      DPI_TO_DENSITY = {
        120: 'ldpi',
        160: 'mdpi',
        240: 'hdpi',
        320: 'xhdpi',
        480: 'xxhdpi',
        640: 'xxxhdpi',
      }
      return DPI_TO_DENSITY.get(self.pixel_density, 'tvdpi')
function_tokens: def screen_density ( self ) : DPI_TO_DENSITY = { 120 : 'ldpi' , 160 : 'mdpi' , 240 : 'hdpi' , 320 : 'xhdpi' , 480 : 'xxhdpi' , 640 : 'xxxhdpi' , } return DPI_TO_DENSITY . get ( self . pixel_density , 'tvdpi' )