+
     Gi  c                   s    ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHt RtRt	^t
^t^t^ t^ t ! R R4      t ! R	 R
4      t ! R R4      tR tR# )i    N)helpers)GLib)INotificationCallbackz!lineageos.waydroid.INotificationsZwaydroidnotificationsc                   s"    ] tR t^t^ t^t^tRtR# )Urgency N)__name__
__module____qualname____firstlineno__ZLOWZNORMALZCRITICAL__static_attributes__r       4/usr/lib/waydroid/tools/interfaces/INotifications.pyr   r      s    
CFHr
   r   c                   s&   a  ] tR t^t o R tRtV tR# )Actionc                s    Wn         W n        R # NZidlabel)selfZ	action_idr   s   &&&r   __init__ZAction.__init__   s    
r
   r   Nr   r   r   r   r   r	   Z__classdictcell__Z__classdict__   @r   r   r      s      r
   r   c                   s&   a  ] tR t^!t o R tRtV tR# )	ImageDatac                sB    Wn         W n        W0n        W@n        WPn        R # r   )widthheight	rowstride	has_alphadata)r   r   r   r   r   r   s   &&&&&&r   r   ZImageData.__init__"   s    
""	r
   )r   r   r   r   r   Nr   r   r   r   r   r   !   s      r
   r   c                 s  a aaaaa \         P                  P                  S 4        \        P                  ! R S P
                  ,           S P                  S P                  4      oVVVV3R lpV VV3R lpSP                  \        V4      o\        P                  ! 4       S n        V! 4        SP                  V4      pV'       d/   S P                  P                  4        SP!                  V4       >R# \"        P$                  ! RP'                  V4      4       R#   \         d+    \        P                  ! R S P
                  ,           4      o Li ; i)z/dev/c                 s   < \         P                  ! R P                  \        V4      4       V P	                  4       pSP                  4       pV\        8X  d7   VP                  4       pS! \        V4      4       VP                  ^ 4       V^ 3# V\        8X  Ed)   VP                  4       w  rgVP                  4       pVP                  4       p	VP                  4       p
VP                  4       p. pVP                  4       w  rm\        V4       Fk  pVP                  4       w  rnV\        8w  g   K"  VP                  4       w  roVP                  \!        VP                  4       VP                  4       4      4       Km  	  RpVP                  4       w  rnV\        8w  d   VP                  4       w  ro\#        VP                  4       ^,          VP                  4       ^,          VP                  4       ^,          VP%                  4       ^,          VP'                  4       4      pVP                  4       pVP%                  4       w  ppVP                  4       w  ppVP%                  4       w  ppVP%                  4       w  ppVP)                  4       w  ppS! WxWWVVVVVVV4      pVP                  ^ 4       VP                  V4       V^ 3# V\*        8X  d1   VP                  4       w  ppS! V4       VP                  ^ 4       V^ 3# VR3# )z{}: Received transaction: {}Niay)loggingZdebugformatSERVICE_NAMEZinit_readerZ	new_replyTRANSACTION_registerListenerZread_objectr   Zappend_int32TRANSACTION_notifyZ
read_int32Zread_string16ZrangekNullParcelableFlagZappendr   r   Z	read_boolZread_byte_arrayZ	read_byteTRANSACTION_closeNotification)ZreqZcodeZflagsZreaderZlocal_responseZremoteZ_Zreplaces_idZapp_nameZpackage_nameZsummaryZbodyZactionsZactions_lengthZparcel_null_flagZparcel_sizeZ
image_dataZcategoryZsuppress_soundZexpire_timeoutZresidentZ	transientZurgencyZnotification_idcloseNotificationnotifyregisterListenerresponses   &&&                     r   response_handlerZ%add_service.<locals>.response_handler0   s   *11,E	G"!++-//'')F26:;''*R q  Q ''#..0NA++-H!//1L**,G'')DG & 1 1 3A>*&,&7&7&9##'::%+%6%6%8NANN6&*>*>*@&BVBVBX#YZ	 +
 J"("3"3"5A $77!'!2!2!4&%%'*%%'*%%'*$$&q)**,
 ++-H & 0 0 2A~ & 1 1 3A~ **,KAx!++-LAy))+JAw$[LSWblnv  yG  IW  Ya  cl  nu  vO''*''8 q   22!'!2!2!4Ao.''* q   "6))r
   c                  s   < SP                  4       '       dg   SP                  \        S4      p V '       dG   \        P                  ! R P                  \        V 4      4       SP                  P                  4        R# R# R# )zFailed to add service {}: {}N)Z
is_presentZadd_service_syncr   r   errorr   notificationLoopZquit)statusargsr%   serviceManagers    r   binder_presenceZ$add_service.<locals>.binder_presencec   sb    $$&&#44\8LF<CC &* +%%**,  'r
   z"Failed to add presence handler: {}N)r    ZdriversZloadBinderNodesgbinderZServiceManagerZBINDER_DRIVERZSERVICE_MANAGER_PROTOCOLZBINDER_PROTOCOLZ	TypeErrorZnew_local_object	INTERFACEr   ZMainLoopr(   Zadd_presence_handlerZrunZremove_handlerr   r'   r   )	r*   r$   r#   r"   r&   r,   r)   r%   r+   s	   ffff   @@r   add_servicer/   )   s   OO##D)N //$:L:L0LdNkNkmq  nB  nB  C1! 1!f- ..y:JKH MMOD00AF!!#%%f-:AA&IJQ  N //$:L:L0LMNs   =D 2EE)r-   r   Ztoolsr    Zgi.repositoryr   Z&tools.interfaces.INotificationCallbackr   r.   r   r   r   r!   r    ZID_NONEr   r   r   r/   r   r
   r   <module>r0      sb        H 0	&    !  
 
 
 LKr
   