Ë
    ^ÀjV  ã                   óZ   — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z
  G d„ deee«      Zy)	é    )ÚUnknownMethodException)ÚCanExecuteCommands)ÚCanExecuteScripts)ÚCanRememberExtensionPresence)ÚMobileCommandc                   ó    — e Zd Zdefd„Zdd„Zy)ÚDisplayÚreturnc                 óÈ   — d}	 | j                  |«      j                  |«      S # t        $ r4 | j                  |«      j	                  t
        j                  «      d   cY S w xY w)zïGet the display density, Android only

        Returns:
            The display density of the Android device(dpi)

        Usage:
            self.driver.get_display_density()

        Return:
            int: The display density
        zmobile: getDisplayDensityÚvalue)Úassert_extension_existsÚexecute_scriptr   Úmark_extension_absenceÚexecuteÚCommandÚGET_DISPLAY_DENSITY)ÚselfÚext_names     ú_/home/ubuntu/.local/lib/python3.12/site-packages/appium/webdriver/extensions/android/display.pyÚget_display_densityzDisplay.get_display_density   sd   € ð /ˆð	gØ×/Ñ/°Ó9×HÑHÈÓRÐRøÜ%ò 	gà×.Ñ.¨xÓ8×@Ñ@Ä×A\ÑA\Ó]Ð^eÑfÒfð	gús   „$ ¤:A!Á A!Nc                 óZ   — | j                   j                  t        j                  dd«       y )NÚGETz1/session/$sessionId/appium/device/display_density)Úcommand_executorÚadd_commandr   r   )r   s    r   Ú_add_commandszDisplay._add_commands+   s%   € Ø×Ñ×)Ñ)Ü×'Ñ'ØØ?õ	
ó    )r
   N)Ú__name__Ú
__module__Ú__qualname__Úintr   r   © r   r   r	   r	      s   „ ðg Só gô&
r   r	   N)Úselenium.common.exceptionsr   Ú/appium.protocols.webdriver.can_execute_commandsr   Ú.appium.protocols.webdriver.can_execute_scriptsr   Ú:appium.protocols.webdriver.can_remember_extension_presencer   Úappium.webdriver.mobilecommandr   r   r	   r!   r   r   ú<module>r'      s)   ðõ >å NÝ LÝ cÝ Cô
Ð Ð"3Ð5Qõ 
r   